Package org.gedcom4j.model

Examples of org.gedcom4j.model.Source


    /**
     * Test when source has some bad values
     */
    public void testBadSource1() {
        Source src = new Source("bad xref");
        src.recIdNumber = new StringWithCustomTags("");
        AbstractValidator av = new SourceValidator(rootValidator, src);
        av.validate();
        assertFindingsContain(Severity.ERROR, "record id", "source", "blank");
        assertFindingsContain(Severity.ERROR, "xref", "source", "start", "at", "sign");
View Full Code Here


    /**
     * Test when source has some bad values
     */
    public void testBadSource2() {
        Source src = new Source("@Test@");
        src.data = new SourceData();
        EventRecorded e = new EventRecorded();
        e.datePeriod = new StringWithCustomTags("anytime");
        src.data.eventsRecorded.add(e);
        AbstractValidator av = new SourceValidator(rootValidator, src);
View Full Code Here

    /**
     * Test for a new {@link Source}
     */
    public void testDefault() {
        Source src = new Source(null);
        AbstractValidator av = new SourceValidator(rootValidator, src);
        av.validate();
        assertFindingsContain(Severity.ERROR, "xref", "required", "null", "blank");
    }
View Full Code Here

TOP

Related Classes of org.gedcom4j.model.Source

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.