List of usage examples for org.springframework.data.solr.server.support SolrClientUtils resolveSolrCoreName
public static String resolveSolrCoreName(Class<?> type)
From source file:org.springframework.data.solr.server.support.SolrClientUtilTests.java
@Test public void testResolveSolrCoreNameShouldReturnEmptyStringWhenNoAnnotationPresent() { Assert.assertThat(SolrClientUtils.resolveSolrCoreName(ClassWithoutSolrDocumentAnnotation.class), isEmptyString());/*from w ww .j a v a 2 s . com*/ }
From source file:org.springframework.data.solr.server.support.SolrClientUtilTests.java
@Test public void testResolveSolrCoreNameShouldReturnEmptyStringWhenAnnotationHasNoValue() { Assert.assertThat(SolrClientUtils.resolveSolrCoreName(ClassWithEmptySolrDocumentAnnotation.class), isEmptyString());//from ww w .j a v a 2 s . co m }
From source file:org.springframework.data.solr.server.support.SolrClientUtilTests.java
@Test public void testResolveSolrCoreNameShouldReturnAnnotationValueWhenPresent() { Assert.assertThat(SolrClientUtils.resolveSolrCoreName(ClassWithSolrDocumentAnnotation.class), equalTo("core1")); }