Package net.geco.model

Examples of net.geco.model.RunnerRaceData


  @Test
  public void testResultDataImportMigration12(){ // MIGR12
    testCardDataImportMigration12();
    ResultDataIO resultDataIO = new ResultDataIO(factory, null, null, registry, false);
    RunnerRaceData raceData = resultDataIO.importTData(new String[]{
      "501aa", "NOS", "0:59:25"
    });
    assertEquals(Status.NOS, raceData.getStatus());
    assertEquals(TimeManager.safeParse("0:59:25").getTime(), raceData.getResult().getRacetime());
  }
View Full Code Here


    assertFalse(orangeResults.isEmpty());
   
    assertEquals(23, orangeResults.getRanking().size());
    assertEquals(1, orangeResults.getNRRunners().size());
    assertEquals(1, orangeResults.getOtherRunners().size());
    RunnerRaceData runnerRaceData = orangeResults.getOtherRunners().get(0);
    assertEquals("Jackie McCavana", runnerRaceData.getRunner().getName());
   
  }
View Full Code Here

    assertFalse(lcResults.isEmpty());
   
    assertEquals(38, lcResults.getRanking().size());
    assertEquals("Gerard Butler", lcResults.getRanking().get(0).getRunnerData().getRunner().getName());
    assertEquals(13, lcResults.getNRRunners().size());
    RunnerRaceData ncRunner = belfieldStage.registry().findRunnerData("10886"); // "Ruth Lynam, N/C"
    assertTrue(ncRunner.getRunner().isNC());
    assertTrue(lcResults.getNRRunners().contains(ncRunner));
  }
View Full Code Here

   *
   */
  private void checkDNSRunner() {
    for (Runner runner : registry.getRunners()) {
      if( registry.findRunnerData(runner) == null ) {
        RunnerRaceData data = factory.createRunnerRaceData();
        data.setRunner(runner);
        data.setResult(factory.createRunnerResult());
        registry.addRunnerData(data);
      }
       
    }
  }
View Full Code Here

TOP

Related Classes of net.geco.model.RunnerRaceData

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.