@Bean @ConditionalOnMissingBean public TomcatPublicMetrics tomcatPublicMetrics() { return new TomcatPublicMetrics(); }
@Test public void tomcatMetrics() throws Exception { loadWeb(TomcatConfiguration.class); assertThat(this.context.getBeansOfType(TomcatPublicMetrics.class)).hasSize(1); }
@Test public void tomcatMetrics() throws Exception { loadWeb(TomcatConfiguration.class); assertEquals(1, this.context.getBeansOfType(TomcatPublicMetrics.class).size()); }