@Test public void testDefaultRepositoryConfiguration() { initContext(TestConfiguration.class); assertThat(this.context.getBean(CityRepository.class)).isNotNull(); assertThat(this.context.getBean(SolrClient.class)) .isInstanceOf(HttpSolrClient.class); }
@Test public void testDefaultRepositoryConfiguration() { initContext(TestConfiguration.class); assertThat(this.context.getBean(CityRepository.class), notNullValue()); assertThat(this.context.getBean(SolrServer.class), instanceOf(HttpSolrServer.class)); }
@Test(expected = NoSuchBeanDefinitionException.class) public void autoConfigurationShouldNotKickInEvenIfManualConfigDidNotCreateAnyRepositories() { initContext(SortOfInvalidCustomConfiguration.class); this.context.getBean(CityRepository.class); }