@Test public void advanceTimeTest() { Logger logger = new Logger(3, new ImmutableClock(0, 0)); observer.attachLogger(logger); observer.advanceTime(new ImmutableClock(1, 100)); assertEquals(new ImmutableClock(1, 100), logger.getCurrentTime()); }
@Test(expected = IllegalArgumentException.class) public void advanceIllegalTime() { observer.advanceTime(null); }