}
@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());
}