Examples of exportTData()


Examples of net.geco.model.iocsv.CardDataIO.exportTData()

    String[] record = new String[]{
      "66", "--:--", "1:00:00", "1:00:15", "1:05:00", "2:10:05", "31", "1:06:15", "32", "1:32:42"       
    };
    RunnerRaceData runnerData = cardDataIO.importTData(record);
    cardDataIO.register(runnerData, registry);
    assertArrayEquals(record, cardDataIO.exportTData(runnerData));
  }

  @Test
  public void testResultDataImport(){
    testCardDataImport();
View Full Code Here

Examples of net.geco.model.iocsv.ResultDataIO.exportTData()

  @Test
  public void testResultDataRoundtrip(){
    testCardDataImport();
    ResultDataIO resultDataIO = new ResultDataIO(factory, null, null, registry);
    String[] record = new String[]{"66", "NOS", "0:59:25"};
    assertArrayEquals(record, resultDataIO.exportTData(resultDataIO.importTData(record)));

  }
}
View Full Code Here

Examples of net.geco.model.iocsv.RunnerIO.exportTData()

  private void appendCsvHeat(Heat heat, CsvWriter writer) throws IOException {
    RunnerIO runnerIO = new RunnerIO(null, null, writer, null, stage().getZeroHour());
    Course heatCourse = factory().createCourse();
    heatCourse.setName(heat.getName());
    for (Runner runner : heat.getQualifiedRunners()) {
      writer.writeRecord(runnerIO.exportTData(cloneRunnerForHeat(runner, heatCourse)));
    }
  }
  private Runner cloneRunnerForHeat(Runner runner, Course heatCourse) {
    Runner newRunner = factory().createRunner();
    newRunner.setStartId(newStartId());
View Full Code Here

Examples of net.geco.model.iocsv.RunnerIO.exportTData()

    runner.setLastname("Doe");
    runner.setNC(true);
    runner.setRentedEcard(true);
    runner.setStartId(100);
    runner.setRegisteredStarttime(new Date(3600000));
    String[] data = runnerIO.exportTData(runner);
   
    assertArrayEquals(
        new String[]{"100", "203a", "John", "Doe", "Cl", "Course", "true", "H60", "1:00:00", "", "", "true", "50000"},
        data);
  }
View Full Code Here

Examples of net.geco.model.iocsv.RunnerIO.exportTData()

  public void testRunnerRoundtrip(){
    RunnerIO runnerIO = new RunnerIO(factory, null, null, registry, 0);
    String[] record = new String[]{
      "100", "203a", "John", "Doe", "Cl", "Course", "true", "H60", "1:00:00", "", "", "true", "50000"
    };
    assertArrayEquals(record, runnerIO.exportTData(runnerIO.importTData(record)));
  }
 
  private Runner runnerFactory(Integer startId){
    return runnerFactory(startId, "");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.