Examples of MappingSolrConverter


Examples of org.springframework.data.solr.core.convert.MappingSolrConverter

      throw new IllegalArgumentException("Collections are not supported for this operation");
    }
  }

  private final SolrConverter getDefaultSolrConverter() {
    MappingSolrConverter converter = new MappingSolrConverter(this.mappingContext);
    converter.afterPropertiesSet(); // have to call this one to initialize default converters
    return converter;
  }
View Full Code Here

Examples of org.springframework.data.solr.core.convert.MappingSolrConverter

  @SuppressWarnings("unchecked")
  @Before
  public void setUp() {

    mappingContext = new SimpleSolrMappingContext();
    solrConverter = new MappingSolrConverter(mappingContext);
    entityInformationCreator = new SolrEntityInformationCreatorImpl();
    Mockito.when(persitentEntityMock.getType()).thenReturn(ProductBean.class);
    Mockito.when(solrOperationsMock.execute(Matchers.any(SolrCallback.class))).thenReturn(
        new PageImpl<ProductBean>(Collections.<ProductBean> emptyList()));
    Mockito.when(solrOperationsMock.getConverter()).thenReturn(solrConverter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.