import org.slf4j.LoggerFactory;
/**
- * General tests for StatisticsCounters class
+ * General tests for StatisticsCounters class
* @author madamjak
*
*/
} else {
Assert.assertNull("Wrong - not enabled counter give not null value", statCounters.getCounter(cet));
}
-
+
}
statCounters.resetCounters();
for(CounterEventTypes cet : CounterEventTypes.values()){
Assert.assertEquals("Wrong - bad logReportPeriod", testDelay, statCounters.getLogReportPeriod());
statCounters.stopLogReport();
Assert.assertFalse("Wrong - logRepoter is running", statCounters.isRunLogReport());
- statCounters.startLogReport(statCounters.MINIMAL_LOG_REPORT_PERIOD / 2);
+ statCounters.startLogReport(StatisticsCounters.MINIMAL_LOG_REPORT_PERIOD / 2);
Assert.assertTrue("Wrong - logRepoter is not running", statCounters.isRunLogReport());
- Assert.assertEquals("Wrong - bad logReportPeriod", statCounters.MINIMAL_LOG_REPORT_PERIOD, statCounters.getLogReportPeriod());
+ Assert.assertEquals("Wrong - bad logReportPeriod", StatisticsCounters.MINIMAL_LOG_REPORT_PERIOD, statCounters.getLogReportPeriod());
statCounters.stopCounting();
Assert.assertFalse("Wrong - logRepoter is running", statCounters.isRunLogReport());
}