@Test public void testStartFinishString() { driver.setStartTime(new EnduroTime("12.00.00")); driver.setStartTime(new EnduroTime("12.01.00")); driver.setFinishTime(new EnduroTime("13.00.00")); driver.setFinishTime(new EnduroTime("13.01.00")); assertEquals("12.00.00,12.01.00", driver.getStartTimeString()); assertEquals("13.00.00,13.01.00", driver.getFinishTimeString()); }
@Test public void testPutTime() { driver.setStartTime(new EnduroTime("12.00.00")); assertEquals("12.00.00", driver.getStartTimes().get(0).toString()); assertEquals("12.00.00", driver.getStartTimeString()); }
@Test public void getTimesWhenThereIsNoTimesRegistered() { MarathonDriver driver2 = new MarathonDriver(2); assertEquals("--.--.--", driver2.getFinishTimeString()); assertEquals("--.--.--", driver2.getStartTimeString()); }