Examples of NameForm


Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John Johnson Jr.");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartEquals(nameForm, "Jr.", NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "Johnson John");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartDoesNotExist(nameForm, NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John Johnson");
    checkNamePartDoesNotExist(nameForm, NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartDoesNotExist(nameForm, NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartDoesNotExist(nameForm, NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartDoesNotExist(nameForm, NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertNull(nameForm.getFullText());
    checkNamePartEquals(nameForm, "npfx", NamePartType.Prefix);
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);
    checkNamePartEquals(nameForm, "nsfx", NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartDoesNotExist(nameForm, NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartDoesNotExist(nameForm, NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John Jr.");
    checkNamePartDoesNotExist(nameForm, NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartDoesNotExist(nameForm, NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "John");
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartDoesNotExist(nameForm, NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
    checkNamePartDoesNotExist(nameForm, NamePartType.Suffix);
  }
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertNull(nameForm.getFullText());
    checkNamePartEquals(nameForm, "A", NamePartType.Given);
    checkNamePartEquals(nameForm, "B", NamePartType.Given);
    checkNamePartEquals(nameForm, "C", NamePartType.Given);
    checkNamePartDoesNotExist(nameForm, NamePartType.Surname);
    checkNamePartDoesNotExist(nameForm, NamePartType.Prefix);
View Full Code Here

Examples of org.gedcomx.conclusion.NameForm

    assertEquals(result.getPersons().size(), 1);

    org.gedcomx.conclusion.Person person = result.getPersons().get(0);
    assertNotNull(person.getNames());
    assertEquals(person.getNames().size(), 1);
    NameForm nameForm = person.getNames().get(0).getNameForms().get(0);
    assertEquals(nameForm.getFullText(), "npfx John spfx Johnson nsfx");
    checkNamePartEquals(nameForm, "npfx", NamePartType.Prefix);
    checkNamePartEquals(nameForm, "John", NamePartType.Given);
    checkNamePartEquals(nameForm, "Johnson", NamePartType.Surname);
    checkNamePartEquals(nameForm, "nsfx", NamePartType.Suffix);
  }
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.