コード例 #1
0
  @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());
  }
コード例 #2
0
 @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());
 }
コード例 #3
0
 @Test
 public void getTimesWhenThereIsNoTimesRegistered() {
   MarathonDriver driver2 = new MarathonDriver(2);
   assertEquals("--.--.--", driver2.getFinishTimeString());
   assertEquals("--.--.--", driver2.getStartTimeString());
 }