Package org.folg.gedcom.model

Examples of org.folg.gedcom.model.Repository


    assertEquals(gedcom.getRepositories().size(), 7);
  }

  @Test
  public void testToOrganization1() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(0);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here


    assertEquals(gedxOrganization.getHomepage().getResource().toString(), "https://www.mycorporation.com/");
  }

  @Test
  public void testToOrganization2() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(1);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here

    assertNull(gedxOrganization.getHomepage());
  }

  @Test
  public void testToOrganization3() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(2);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here

    assertEquals(gedxOrganization.getHomepage().getResource().toString(), "http://www.rootsweb.ancestry.com/~tnhenry2/");
  }

  @Test
  public void testToOrganization4() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(3);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here

    assertNull(gedxOrganization.getHomepage());
  }

  @Test
  public void testToOrganization5() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(4);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here

    assertEquals(result.getSourceDescriptions().size(), 0);
  }

  @Test
  public void testToOrganization6() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(5);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here

    assertEquals(result.getSourceDescriptions().size(), 0);
  }

  @Test
  public void testToOrganization7() throws Exception {
    Repository dqRepository = gedcom.getRepositories().get(6);
    TestConversionResult result = new TestConversionResult();
    SourceDescriptionMapper mapper = new SourceDescriptionMapper();

    mapper.toOrganization(dqRepository, result);
    assertNotNull(result.getOrganizations());
View Full Code Here

TOP

Related Classes of org.folg.gedcom.model.Repository

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.