use of org.graylog2.plugin.periodical.Periodical in project graylog2-server by Graylog2.
the class PeriodicalsTest method testGetFuturesReturnsACopyOfTheMap.
@Test
public void testGetFuturesReturnsACopyOfTheMap() throws Exception {
final Periodical periodical2 = mock(Periodical.class);
periodicals.registerAndStart(periodical);
periodicals.getFutures().put(periodical2, null);
assertFalse("getFutures() did not return a copy of the Map", periodicals.getFutures().containsKey(periodical2));
assertEquals(periodicals.getFutures().size(), 1);
}
Aggregations