Java 类org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CouchbaseDataAutoConfigurationTests.java   
private void load(Class<?> config, String... environment) {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
    EnvironmentTestUtils.addEnvironment(context, environment);
    if (config != null) {
        context.register(config);
    }
    context.register(PropertyPlaceholderAutoConfiguration.class,
            CouchbaseAutoConfiguration.class, CouchbaseDataAutoConfiguration.class);
    context.refresh();
    this.context = context;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CouchbaseRepositoriesAutoConfigurationTests.java   
private void load(Class<?> config, String... environment) {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
    EnvironmentTestUtils.addEnvironment(context, environment);
    if (config != null) {
        context.register(config);
    }
    context.register(PropertyPlaceholderAutoConfiguration.class,
            CouchbaseAutoConfiguration.class, CouchbaseDataAutoConfiguration.class,
            CouchbaseRepositoriesAutoConfiguration.class);
    context.refresh();
    this.context = context;
}
项目:spring-boot-concourse    文件:CouchbaseDataAutoConfigurationTests.java   
private void load(Class<?> config, String... environment) {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
    EnvironmentTestUtils.addEnvironment(context, environment);
    if (config != null) {
        context.register(config);
    }
    context.register(PropertyPlaceholderAutoConfiguration.class,
            CouchbaseAutoConfiguration.class, CouchbaseDataAutoConfiguration.class);
    context.refresh();
    this.context = context;
}
项目:spring-boot-concourse    文件:CouchbaseRepositoriesAutoConfigurationTests.java   
private void load(Class<?> config, String... environment) {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
    EnvironmentTestUtils.addEnvironment(context, environment);
    if (config != null) {
        context.register(config);
    }
    context.register(PropertyPlaceholderAutoConfiguration.class,
            CouchbaseAutoConfiguration.class, CouchbaseDataAutoConfiguration.class,
            CouchbaseRepositoriesAutoConfiguration.class);
    context.refresh();
    this.context = context;
}