@Bean public SystemPublicMetrics systemPublicMetrics() { return new SystemPublicMetrics(); }
@Test public void systemPublicMetrics() throws Exception { load(); assertThat(this.context.getBeansOfType(SystemPublicMetrics.class)).hasSize(1); }
@Bean public ServletRegistrationBean systemPublicMetricsServlet(SystemPublicMetrics publicMetrics) { return new ServletRegistrationBean(createMetricsServlet(publicMetrics), "/monitoring/system"); }
@Test public void systemPublicMetrics() throws Exception { load(); assertEquals(1, this.context.getBeansOfType(SystemPublicMetrics.class).size()); }