Java 类org.springframework.boot.actuate.endpoint.TomcatPublicMetrics 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public TomcatPublicMetrics tomcatPublicMetrics() {
    return new TomcatPublicMetrics();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void tomcatMetrics() throws Exception {
    loadWeb(TomcatConfiguration.class);
    assertThat(this.context.getBeansOfType(TomcatPublicMetrics.class)).hasSize(1);
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public TomcatPublicMetrics tomcatPublicMetrics() {
    return new TomcatPublicMetrics();
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void tomcatMetrics() throws Exception {
    loadWeb(TomcatConfiguration.class);
    assertThat(this.context.getBeansOfType(TomcatPublicMetrics.class)).hasSize(1);
}
项目:contestparser    文件:PublicMetricsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public TomcatPublicMetrics tomcatPublicMetrics() {
    return new TomcatPublicMetrics();
}
项目:contestparser    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void tomcatMetrics() throws Exception {
    loadWeb(TomcatConfiguration.class);
    assertEquals(1, this.context.getBeansOfType(TomcatPublicMetrics.class).size());
}