@Test public void should_load_default_configuration_and_initialize() throws ConfigurationException { InfoProvider infoProvider = mock(InfoProvider.class); when(infoProvider.getUnreachableNodes()).thenReturn(new ArrayList<String>()); PowerMockito.mockStatic(DiagnosticsAgent.class); PowerMockito.when(DiagnosticsAgent.getInfoProvider()).thenReturn(infoProvider); int periodInMinutes = 1; boolean numberOfUnreachableNodesEnabled = true; final ClusterHealthModule module = new ClusterHealthModule( testConfiguration(periodInMinutes, numberOfUnreachableNodesEnabled), testReporters(), GlobalConfiguration.getDefault()); module.stop(); PowerMockito.verifyStatic(); }
@Override public void stop() { logger.trace("Stopping status module."); timer.cancel(); }
ClusterHealthModule extends Module { @Override public void stop() { logger.trace("Stopping status module."); timer.cancel(); } }
ClusterHealthModule extends Module { @Override public void stop() { logger.trace("Stopping status module."); timer.cancel(); } ClusterHealthModule(ModuleConfiguration configuration, List<Reporter> reporters,
            final GlobalConfiguration globalConfiguration); }
ClusterHealthModule extends Module { @Override public void stop() { logger.trace("Stopping status module."); timer.cancel(); } ClusterHealthModule(ModuleConfiguration configuration, List<Reporter> reporters,
            final GlobalConfiguration globalConfiguration); @Override void stop(); }
ClusterHealthModule extends Module { @Override public void stop() { logger.trace("Stopping status module."); timer.cancel(); } ClusterHealthModule(ModuleConfiguration configuration, List<Reporter> reporters,
            final GlobalConfiguration globalConfiguration); @Override void stop();  }