@@ -0,0 +1,2880 @@
+package internal.org.springframework.content.solr;%0A%0Aimport static com.github.paulcwarren.ginkgo4j.Ginkgo4jDSL.Describe;%0Aimport static com.github.paulcwarren.ginkgo4j.Ginkgo4jDSL.It;%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Mockito.*;%0A%0Aimport org.apache.solr.client.solrj.SolrClient;%0Aimport org.apache.solr.client.solrj.impl.HttpSolrClient;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.CoreMatchers.not;%0Aimport static org.hamcrest.CoreMatchers.nullValue;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.context.properties.ConfigurationProperties;%0Aimport org.springframework.boot.context.properties.EnableConfigurationProperties;%0Aimport org.springframework.content.commons.operations.ContentOperations;%0Aimport org.springframework.content.solr.EnableFullTextSolrIndexing;%0Aimport org.springframework.content.solr.SolrConfig;%0Aimport org.springframework.content.solr.SolrIndexer;%0Aimport org.springframework.content.solr.SolrProperties;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.ComponentScan;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.context.annotation.Import;%0Aimport org.springframework.context.annotation.PropertySource;%0Aimport org.springframework.core.convert.ConversionService;%0Aimport org.springframework.test.context.ContextConfiguration;%0A%0Aimport com.github.paulcwarren.ginkgo4j.Ginkgo4jSpringRunner;%0A%0A@RunWith(Ginkgo4jSpringRunner.class)%0A@ContextConfiguration(classes=EnableFullTextSolrIndexingTest.TestConfiguration.class)%0Apublic class EnableFullTextSolrIndexingTest %7B%0A%0A%09@Autowired private ApplicationContext context;%0A%09%0A%09%7B%0A%09%09Describe(%22EnableFullTextSolrIndexing%22, () -%3E %7B%0A%09%09%09It(%22should have a SolrProperties bean%22, () -%3E %7B%0A%09%09%09%09assertThat(context.getBean(SolrProperties.class), is(not(nullValue())));%0A%09%09%09%7D);%0A%09%09%09It(%22should have a SolrIndexer bean%22, () -%3E %7B%0A%09%09%09%09assertThat(context.getBean(SolrIndexer.class), is(not(nullValue())));%0A%09%09%09%7D);%0A%09%09%7D);%0A%09%7D%0A%09%0A%09@Configuration%0A%09@EnableFullTextSolrIndexing%0A%09@Import(ContentStoreConfiguration.class)%0A%09public static class TestConfiguration %7B%0A%0A%09%09@Bean%0A%09    public SolrClient solrClient() %7B%0A%09        SolrClient sc = new HttpSolrClient(%22http://some/url%22);%0A%09        return sc;%0A%09    %7D%0A%09%09%0A%09%7D%0A%09%0A%09public static class ContentStoreConfiguration %7B%0A%09%09%0A%09%09// Infrastructure bean - would usually be supplied by a content store implementation%0A%09%09@Bean%0A%09%09public ContentOperations contentOperations() %7B%0A%09%09%09return mock(ContentOperations.class);%0A%09%09%7D%0A%0A%09%09// Developer bean - would usually be supplied by app developer%0A%09%09@Bean%0A%09%09public ConversionService conversionService() %7B%0A%09%09%09return mock(ConversionService.class);%0A%09%09%7D%0A%0A%09%7D%0A%09%0A%09@Test%0A%09public void noop() %7B%0A%09%7D%0A%0A%7D%0A

Add solr enablement annotation test