Package net.geco.model

Examples of net.geco.model.Runner


    return getRunnerData(rowIndex).getRunner();
  }
 
 
  public Object getValueAt(int rowIndex, int columnIndex) {
    Runner runner = getRunner(rowIndex);
    switch (columnIndex) {
    case 0: return runner.getStartId();
    case 1: return runner.getEcard();
    case 2: return runner.getFirstname();
    case 3: return runner.getLastname();
    case 4: return runner.getCategory().getShortname();
    case 5: return runner.getCourse().getName();
    case 6: return runner.getClub().getName();
    case 7: return getRunnerData(rowIndex).getResult().formatRacetime();
    case 8: return getRunnerData(rowIndex).getResult().getStatus();
    default: return "Pbm"; //$NON-NLS-1$
    }
  }
View Full Code Here


          config.showPenalties,
          html);
    }
    emptyTr(html);
    for (RunnerRaceData runnerData : result.getNRRunners()) {
      Runner runner = runnerData.getRunner();
      if( !runner.isNC() ) {
        writeHtml(
            runnerData,
            "", //$NON-NLS-1$
            runnerData.getResult().formatStatus(),
            config.showPenalties,
View Full Code Here

  }

  @Test
  public void testRuthLynamB() {
//    24  10886  Ruth Lynam  CNOC  Long Course  false  W50  36000000  -2  2  true    0
    Runner runner = registryB.findRunnerByEcard("10886");
    assertEquals(24, runner.getStartId().intValue());
    assertEquals("Ruth", runner.getFirstname());
    assertEquals("Lynam", runner.getLastname());
    assertEquals(registryB.findClub("CNOC"), runner.getClub());
    assertEquals(registryB.findCategory("W50"), runner.getCategory());
    assertEquals(registryB.findCourse("Long Course"), runner.getCourse());
    assertTrue(runner.isNC());
  }
View Full Code Here

  }

  @Test
  public void testErikOronnolsB() {
//    34  27326  Erik Oronnols  Linkopings  Long Course  false  M21  42027000  43736000  2  false    0
    Runner runner = registryB.findRunnerByEcard("27326");
    assertEquals(34, runner.getStartId().intValue());
    assertEquals("Erik", runner.getFirstname());
    assertEquals("Oronnols", runner.getLastname());
    assertEquals(registryB.findClub("Linkopings"), runner.getClub());
    assertEquals(registryB.findCategory("M21"), runner.getCategory());
    assertEquals(registryB.findCourse("Long Course"), runner.getCourse());
    assertFalse(runner.isNC());
  }
View Full Code Here

  }

  @Test
  public void testSusieNaughtonB() {
//    16  11261  Susie Amelie Naughton  3ROC  Short Course  false  W12  40636000  42908000  2  false    0
    Runner runner = registryB.findRunnerByEcard("11261");
    assertEquals(16, runner.getStartId().intValue());
    assertEquals("Susie Amelie", runner.getFirstname());
    assertEquals("Naughton", runner.getLastname());
    assertEquals(registryB.findClub("3ROC"), runner.getClub());
    assertEquals(registryB.findCategory("W12"), runner.getCategory());
    assertEquals(registryB.findCourse("Short Course"), runner.getCourse());
    assertFalse(runner.isNC());
  }
View Full Code Here

  }

  @Test
  public void testBillyFyffeM() {
//    168  203186  Billy Fyffe  FERMO  Brown  false  M50  46438000  54054000  2  false    0
    Runner runner = registryM.findRunnerByEcard("203186");
    assertEquals(168, runner.getStartId().intValue());
    assertEquals("Billy", runner.getFirstname());
    assertEquals("Fyffe", runner.getLastname());
    assertEquals(registryM.findClub("FERMO"), runner.getClub());
    assertEquals(registryM.findCategory("M50"), runner.getCategory());
    assertEquals(registryM.findCourse("Brown"), runner.getCourse());
    assertFalse(runner.isNC());
  }
View Full Code Here

  }

  @Test
  public void testOBoyleM() {
//    162  51009  Caoimhe O'Boyle  CNOC  Orange  false     47396000  48530000  2  false    0
    Runner runner = registryM.findRunnerByEcard("51009");
    assertEquals(162, runner.getStartId().intValue());
    assertEquals("Caoimhe", runner.getFirstname());
    assertEquals("O'Boyle", runner.getLastname());
    assertEquals(registryM.findClub("CNOC"), runner.getClub());
    assertEquals("[None]", runner.getCategory().getShortname());
    assertEquals(registryM.findCourse("Orange"), runner.getCourse());
    assertFalse(runner.isNC());
  }
View Full Code Here

  }

  @Test
  public void testAidanBlagdenM() {
//    43  11445  Aidan Blagden     Orange  true  M14  41219000  42673000  2  false    0
    Runner runner = registryM.findRunnerByEcard("11445");
    assertEquals(43, runner.getStartId().intValue());
    assertEquals("Aidan", runner.getFirstname());
    assertEquals("Blagden", runner.getLastname());
    assertEquals(registryM.findClub("[None]"), runner.getClub());
    assertEquals(registryM.findCategory("M14"), runner.getCategory());
    assertEquals(registryM.findCourse("Orange"), runner.getCourse());
    assertFalse(runner.isNC());
  }
View Full Code Here

  public void setUp() {
    factory = new POFactory();
    checker = new PunchChecker(factory);
    course = factory.createCourse();
    data = factory.createRunnerRaceData();
    Runner runner = factory.createRunner();
    runner.setCourse(course);
    data.setRunner(runner);
  }
View Full Code Here

  }
 
  @Test
  public void testRunnerImport(){
    RunnerIO runnerIO = new RunnerIO(factory, null, null, registry, 0);
    Runner runner = runnerIO.importTData(new String[]{
      "100", "203a", "John", "Doe", "Cl", "Course", "true", "H60", "1:00:00", "", "", "true", "50000"
//    id,Ecard,First Name,Last Name,Club,Course,Rented,Class,Start Time,Finish Time,Status,NC,Archive
    });
   
    assertEquals("Doe", runner.getLastname());
    assertEquals("John", runner.getFirstname());
    assertEquals(100, runner.getStartId().intValue());
    assertEquals(50000, runner.getArchiveId().intValue());
    assertEquals("203a", runner.getEcard());
    assertTrue(runner.rentedEcard());
    assertTrue(runner.isNC());
    assertEquals(new Date(3600000), runner.getRegisteredStarttime());
   
    runner = runnerIO.importTData(new String[]{
      "100", "203a", "John", "Doe", "Cl", "Course", "true", "H60", "1:00:00", "", "","true" });
    assertEquals("Doe", runner.getLastname());
    assertEquals("John", runner.getFirstname());
    assertEquals(100, runner.getStartId().intValue());
    assertNull(runner.getArchiveId());
    assertEquals("203a", runner.getEcard());
    assertTrue(runner.rentedEcard());
    assertTrue(runner.isNC());
    assertEquals(new Date(3600000), runner.getRegisteredStarttime());
  }
View Full Code Here

TOP

Related Classes of net.geco.model.Runner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.