Java 类org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration 实例源码

项目:spring-cloud-dataflow    文件:DataFlowServerConfigurationTests.java   
@Before
public void setup() {
    context = new AnnotationConfigApplicationContext();
    context.setId("testDataFlowConfig");
    context.register(DataFlowServerConfigurationTests.TestConfiguration.class, RedisAutoConfiguration.class,
            SecurityAutoConfiguration.class, DataFlowServerAutoConfiguration.class,
            DataFlowControllerAutoConfiguration.class, DataSourceAutoConfiguration.class,
            DataFlowServerConfiguration.class, PropertyPlaceholderAutoConfiguration.class,
            WebClientAutoConfiguration.class, HibernateJpaAutoConfiguration.class, WebConfiguration.class);
    environment = new StandardEnvironment();
    propertySources = environment.getPropertySources();
}
项目:initializr    文件:InitializrStatsAutoConfigurationTests.java   
private void load(Class<?> config, String... environment) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
    EnvironmentTestUtils.addEnvironment(ctx, environment);
    if (config != null) {
        ctx.register(config);
    }
    ctx.register(WebClientAutoConfiguration.class,
            InitializrStatsAutoConfiguration.class);
    ctx.refresh();
    this.context = ctx;
}
项目:initializr    文件:InitializrAutoConfigurationTests.java   
private void load(Class<?> config, String... environment) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
    EnvironmentTestUtils.addEnvironment(ctx, environment);
    if (config != null) {
        ctx.register(config);
    }
    ctx.register(WebClientAutoConfiguration.class, JacksonAutoConfiguration.class,
            InitializrAutoConfiguration.class);
    ctx.refresh();
    this.context = ctx;
}