Java 类org.springframework.boot.autoconfigure.data.alt.elasticsearch.CityElasticsearchDbRepository 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ElasticsearchRepositoriesAutoConfigurationTests.java   
@Test
public void doesNotTriggerDefaultRepositoryDetectionIfCustomized() {
    this.context = new AnnotationConfigApplicationContext();
    addElasticsearchProperties(this.context);
    this.context.register(CustomizedConfiguration.class,
            ElasticsearchAutoConfiguration.class,
            ElasticsearchRepositoriesAutoConfiguration.class,
            ElasticsearchDataAutoConfiguration.class,
            PropertyPlaceholderAutoConfiguration.class);
    this.context.refresh();
    assertThat(this.context.getBean(CityElasticsearchDbRepository.class)).isNotNull();
}
项目:spring-boot-concourse    文件:ElasticsearchRepositoriesAutoConfigurationTests.java   
@Test
public void doesNotTriggerDefaultRepositoryDetectionIfCustomized() {
    this.context = new AnnotationConfigApplicationContext();
    addElasticsearchProperties(this.context);
    this.context.register(CustomizedConfiguration.class,
            ElasticsearchAutoConfiguration.class,
            ElasticsearchRepositoriesAutoConfiguration.class,
            ElasticsearchDataAutoConfiguration.class,
            PropertyPlaceholderAutoConfiguration.class);
    this.context.refresh();
    assertThat(this.context.getBean(CityElasticsearchDbRepository.class)).isNotNull();
}
项目:contestparser    文件:ElasticsearchRepositoriesAutoConfigurationTests.java   
@Test
public void doesNotTriggerDefaultRepositoryDetectionIfCustomized() {
    this.context = new AnnotationConfigApplicationContext();
    addElasticsearchProperties(this.context);
    this.context.register(CustomizedConfiguration.class,
            ElasticsearchAutoConfiguration.class,
            ElasticsearchRepositoriesAutoConfiguration.class,
            ElasticsearchDataAutoConfiguration.class,
            PropertyPlaceholderAutoConfiguration.class);
    this.context.refresh();
    assertNotNull(this.context.getBean(CityElasticsearchDbRepository.class));
}