Package net.geco.model

Examples of net.geco.model.Registry


    stage.setBaseDir(baseDir);
    stage.loadProperties(loadProperties(baseDir));
  }

  private void importDataIntoRegistry(Stage newStage) {
    Registry registry = new Registry();
    newStage.setRegistry(registry);
    this.registryBuilder.importAllDataregistry,
                      newStage.getBaseDir(),
                      newStage.getZeroHour(),
                      newStage.version12()); // MIGR12
View Full Code Here


  @Test
  public void testLoadStage() {
    StageBuilder stageBuilder = new StageBuilder(factory);
    stage = stageBuilder.loadStage("testData/belfield", new PenaltyChecker(factory));
    assertStageData(stage, "Belfield", "testData/belfield", "9:00:00", 9, 2);
    Registry registry = stage.registry();
    assertEquals(32, registry.getCategories().size());
    assertEquals(13, registry.getClubs().size());
    assertEquals(2, registry.getCourses().size());
    assertEquals(60, registry.getRunners().size());
  }
View Full Code Here

  @Test
  public void testLoadStageWithMissingData() {
    StageBuilder stageBuilder = new StageBuilder(factory);
    stage = stageBuilder.loadStage("testData/damaged", new PenaltyChecker(factory));
    Registry registry = stage.registry();
    assertEquals(3, registry.getCategories().size());
    assertEquals(4, registry.getClubs().size());
    assertEquals(2, registry.getCourses().size());
    assertEquals(9, registry.getRunners().size());   
  }
View Full Code Here

  private Category category;

  @Before
  public void setUp(){
    factory = new POFactory();
    registry = new Registry();
    club = factory.createClub();
    club.setName("Cl");
    registry.addClub(club);
    course = factory.createCourse();
    course.setName("Course");
View Full Code Here

    this.factory = new POFactory();
    this.reader = new CsvReader();
  }
 
  public Registry importBelfieldData(boolean allData) {
    this.registry = new Registry();
    baseDir = "testData/belfield";
    return importData(allData);
  }
View Full Code Here

    baseDir = "testData/belfield";
    return importData(allData);
  }

  public Registry importMullaghmeenData(boolean allData) {
    this.registry = new Registry();
    baseDir = "testData/mullaghmeen";
    return importData(allData);
  }
View Full Code Here


  @Before
  public void setUp(){
    factory = new POFactory();
    registry = new Registry();
    cat = categoryFactory("cat");
    registry.addCategory(cat);
    cou = courseFactory("course");
    registry.addCourse(cou);
    runner1 = factory(1);
View Full Code Here

TOP

Related Classes of net.geco.model.Registry

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.