Java 类org.springframework.boot.autoconfigure.data.solr.city.CityRepository 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SolrRepositoriesAutoConfigurationTests.java   
@Test
public void testDefaultRepositoryConfiguration() {
    initContext(TestConfiguration.class);
    assertThat(this.context.getBean(CityRepository.class)).isNotNull();
    assertThat(this.context.getBean(SolrClient.class))
            .isInstanceOf(HttpSolrClient.class);
}
项目:spring-boot-concourse    文件:SolrRepositoriesAutoConfigurationTests.java   
@Test
public void testDefaultRepositoryConfiguration() {
    initContext(TestConfiguration.class);
    assertThat(this.context.getBean(CityRepository.class)).isNotNull();
    assertThat(this.context.getBean(SolrClient.class))
            .isInstanceOf(HttpSolrClient.class);
}
项目:contestparser    文件:SolrRepositoriesAutoConfigurationTests.java   
@Test
public void testDefaultRepositoryConfiguration() {
    initContext(TestConfiguration.class);

    assertThat(this.context.getBean(CityRepository.class), notNullValue());
    assertThat(this.context.getBean(SolrServer.class),
            instanceOf(HttpSolrServer.class));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SolrRepositoriesAutoConfigurationTests.java   
@Test(expected = NoSuchBeanDefinitionException.class)
public void autoConfigurationShouldNotKickInEvenIfManualConfigDidNotCreateAnyRepositories() {

    initContext(SortOfInvalidCustomConfiguration.class);
    this.context.getBean(CityRepository.class);
}
项目:spring-boot-concourse    文件:SolrRepositoriesAutoConfigurationTests.java   
@Test(expected = NoSuchBeanDefinitionException.class)
public void autoConfigurationShouldNotKickInEvenIfManualConfigDidNotCreateAnyRepositories() {

    initContext(SortOfInvalidCustomConfiguration.class);
    this.context.getBean(CityRepository.class);
}
项目:contestparser    文件:SolrRepositoriesAutoConfigurationTests.java   
@Test(expected = NoSuchBeanDefinitionException.class)
public void autoConfigurationShouldNotKickInEvenIfManualConfigDidNotCreateAnyRepositories() {

    initContext(SortOfInvalidCustomConfiguration.class);
    this.context.getBean(CityRepository.class);
}