@Test
public void testWriteCollectionToSolrInputDocumentColletion() {
BeanWithDefaultTypes bean1 = new BeanWithDefaultTypes();
bean1.stringProperty = "solr";
BeanWithDefaultTypes bean2 = new BeanWithDefaultTypes();
bean2.intProperty = 10;
Collection<SolrInputDocument> result = converter.write(Arrays.asList(bean1, bean2));
Assert.assertNotNull(result);
Assert.assertThat(result, IsCollectionWithSize.hasSize(2));
}
MappingSolrConverterTests.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:spring-data-solr
作者:
评论列表
文章目录