MappingSolrConverterTests.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:spring-data-solr 作者:
@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));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号