Package org.folg.gedcom.model

Examples of org.folg.gedcom.model.Submitter


    assertNotNull(gedcom.getSubmitter());
  }

  @Test
  public void testToContributor1() throws Exception {
    Submitter dqSubmitter = gedcom.getSubmitter();
    TestConversionResult result = new TestConversionResult();
    SubmitterMapper mapper = new SubmitterMapper();

    // assert parts of the structure that give us code coverage but that are dropped by conversion process
    assertEquals(dqSubmitter.getValue(), "__spec_deviation__value__");
    assertEquals(dqSubmitter.getRin(), "12345");
    assertEquals(((List<GedcomTag>)dqSubmitter.getExtensions().get("folg.more_tags")).size(), 1);
    assertEquals(((List<GedcomTag>)dqSubmitter.getExtensions().get("folg.more_tags")).get(0).getTag(), "UID");
    assertEquals(((List<GedcomTag>)dqSubmitter.getExtensions().get("folg.more_tags")).get(0).getValue(), "23456");

    // execute conversion and test conversion outcome
    mapper.toContributor(dqSubmitter, result);
    assertNotNull(result.getContributors());
    assertEquals(result.getContributors().size(), 1);
View Full Code Here

TOP

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

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.