Package org.gedcom4j.model

Examples of org.gedcom4j.model.Submission


        rootValidator.autorepair = false;
        Submitter s = new Submitter();
        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        g.submission = new Submission("@SUBN0001@");
        g.header.submitter = s;

        g.trailer = null;
        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "trailer");
View Full Code Here


        rootValidator.autorepair = false;
        Submitter s = new Submitter();
        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        g.submission = new Submission("@SUBN0001@");
        Header h = g.header;
        h.submitter = s;
        h.submission = g.submission;

        h.characterSet = null;
View Full Code Here

        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        Header h = g.header;
        h.submitter = s;
        g.submission = new Submission("@SUBN0001@");

        h.copyrightData = null;
        h.submission = g.submission;

        rootValidator.validate();
View Full Code Here

        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        Header h = g.header;
        h.submitter = s;
        g.submission = new Submission("@SUBN0001@");
        h.submission = g.submission;

        h.gedcomVersion = null;
        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "gedcom", "version");
View Full Code Here

     */
    @Test
    public void testNoSubmitters() {
        Gedcom g = new Gedcom();
        rootValidator.gedcom = g;
        g.submission = new Submission("@SUBN0001@");
        g.header.submission = g.submission;

        rootValidator.autorepair = false;
        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "submitter", "not specified");
View Full Code Here

        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        Header h = g.header;
        h.submitter = s;
        g.submission = new Submission("@SUBN0001@");
        h.submission = g.submission;

        h.sourceSystem = null;

        rootValidator.validate();
View Full Code Here

    @Test
    public void testWriteFileWithName() throws IOException, GedcomWriterException {
        String fn = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator")
                + "gedcomfilewritertest.ged";
        Gedcom g = new Gedcom();
        g.submission = new Submission("@SUBN0001@");
        g.header.submission = g.submission;
        Submitter s = new Submitter();
        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("Joe Tester");
        g.submitters.put(s.xref, s);
View Full Code Here

TOP

Related Classes of org.gedcom4j.model.Submission

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.