Package org.gedcom4j.model

Examples of org.gedcom4j.model.Individual


    /**
     * Test for a default individual (no xref)
     */
    public void testValidateIndividual() {
        Individual i = new Individual();
        AbstractValidator v = new IndividualValidator(rootValidator, i);
        v.validate();
        assertFindingsContain(Severity.ERROR, "xref", "null");
    }
View Full Code Here


     */
    public void testValidateIndividuals2() {
        Gedcom g = TestHelper.getMinimalGedcom();

        // Deliberately introduce a problem
        Individual i = new Individual();
        i.xref = "FryingPan";
        g.individuals.put("WrongKey", i);

        // Go validate
        rootValidator = new GedcomValidator(g);
View Full Code Here

    /**
     * Test for {@link RelationshipCalculator}, for aunts/uncles
     */
    public void testAuntsUncles() {
        Individual alex = getPerson("Zucco", "Alex");
        Individual theresa = getPerson("Andrews", "Theresa");

        rc.calculateRelationships(alex, theresa, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + alex + " and " + theresa);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipGrandparents() {
        Individual robert = getPerson("Andrews", "Robert");
        Individual steven = getPerson("Struthers", "Steven");

        rc.calculateRelationships(robert, steven, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + robert + " and " + steven);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipGreatGrandparents() {
        Individual nancy = getPerson("Andrews", "Nancy");
        Individual steven = getPerson("Struthers", "Steven");

        rc.calculateRelationships(nancy, steven, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + nancy + " and " + steven);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipGreatGreatGrandparents() {
        Individual alex = getPerson("Zucco", "Alex");
        Individual steven = getPerson("Struthers", "Steven");

        rc.calculateRelationships(alex, steven, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + alex + " and " + steven);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipGreatGreatGreatGrandparents() {
        Individual alex = getPerson("Zucco", "Alex");
        Individual kenneth = getPerson("Struthers", "Kenneth");

        rc.calculateRelationships(alex, kenneth, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + alex + " and " + kenneth);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipManyGenerations() {
        Individual alex = getPerson("Zucco", "Alex");
        Individual abigail = getPerson("Wood", "Abigail");

        rc.calculateRelationships(alex, abigail, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + alex + " and " + abigail);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipSelf() {
        Individual alex = getPerson("Zucco", "Alex");

        rc.calculateRelationships(alex, alex, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + alex + " and " + alex);
View Full Code Here

     * {@link RelationshipCalculator#calculateRelationships(org.gedcom4j.model.Individual, org.gedcom4j.model.Individual, boolean)}
     * .
     */
    @Test
    public void testCalculateRelationshipSiblings() {
        Individual alex = getPerson("Zucco", "Alex");
        Individual betsy = getPerson("Zucco", "Betsy");

        rc.calculateRelationships(alex, betsy, true);
        assertNotNull(rc.relationshipsFound);
        if (VERBOSE) {
            System.out.println("Relationships between " + alex + " and " + betsy);
View Full Code Here

TOP

Related Classes of org.gedcom4j.model.Individual

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.