Java 类org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:JmxAutoConfigurationTests.java   
@Test
public void customJmxDomain() {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(CustomJmxDomainConfiguration.class,
            JmxAutoConfiguration.class, IntegrationAutoConfiguration.class);
    this.context.refresh();
    IntegrationMBeanExporter mbeanExporter = this.context
            .getBean(IntegrationMBeanExporter.class);
    DirectFieldAccessor dfa = new DirectFieldAccessor(mbeanExporter);
    assertThat(dfa.getPropertyValue("domain")).isEqualTo("foo.my");
}
项目:spring-boot-concourse    文件:JmxAutoConfigurationTests.java   
@Test
public void customJmxDomain() {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(CustomJmxDomainConfiguration.class,
            JmxAutoConfiguration.class, IntegrationAutoConfiguration.class);
    this.context.refresh();
    IntegrationMBeanExporter mbeanExporter = this.context
            .getBean(IntegrationMBeanExporter.class);
    DirectFieldAccessor dfa = new DirectFieldAccessor(mbeanExporter);
    assertThat(dfa.getPropertyValue("domain")).isEqualTo("foo.my");
}
项目:contestparser    文件:JmxAutoConfigurationTests.java   
@Test
public void customJmxDomain() {
    this.context = new AnnotationConfigApplicationContext();
    this.context.register(CustomJmxDomainConfiguration.class,
            JmxAutoConfiguration.class, IntegrationAutoConfiguration.class);
    this.context.refresh();
    IntegrationMBeanExporter mbeanExporter = this.context
            .getBean(IntegrationMBeanExporter.class);
    DirectFieldAccessor dfa = new DirectFieldAccessor(mbeanExporter);
    assertEquals("foo.my", dfa.getPropertyValue("domain"));
}