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