private StatisticsPollingService statisticsPollingService;
@Before
- public void setUp() throws Exception {
+ public void setUp() {
when(timeCounter.getAverageTimeBetweenMarks()).thenReturn(15000L);
when(gatheringSupplier.get()).thenReturn(Futures.immediateFuture(true));
statisticsPollingService = new StatisticsPollingService(
}
@Test
- public void startUp() throws Exception {
+ public void startUp() {
statisticsPollingService.startUp();
verify(timeCounter).markStart();
}
}
@Test
- public void scheduler() throws Exception {
+ public void scheduler() {
statisticsPollingService.scheduler();
verify(timeCounter).getAverageTimeBetweenMarks();
}