/******************************************************************************
* GenealoJTest
* Simple junit test for the GenealoJ class
* 
* Author:       Mitchell Bowden <mitchellbowden AT gmail DOT com>
* License:      MIT License: http://creativecommons.org/licenses/MIT/
******************************************************************************/

package com.msbmsb.genealoj;

import com.msbmsb.genealoj.GenealoJ;

import java.util.List;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 * Unit test for GenealoJ.
 */
public class GenealoJTest 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public GenealoJTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( GenealoJTest.class );
    }

    /**
     * Rigourous Test
     */
    public void testGenealoJ()
    {
        String testFile = "example/example.ged";
        GenealoJ gedcom = new GenealoJ(testFile);
        System.out.println("Output: ");
        System.out.println(gedcom);
        assertTrue(gedcom.getNodes("INDI").size() == 3);
    }
}


@@ -1213,16 +1213,243 @@
 edcom);%0A
+        System.out.println(%22-------------------------------%22);%0A        List%3CIndividualNode%3E roots = Utils.getRootIndividuals(gedcom.getRoot());%0A        for(IndividualNode r : roots) %7B%0A          System.out.println(r);%0A        %7D%0A
         

print individuals in test