Gedcom g = new Gedcom();
rootValidator.gedcom = g;
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;
rootValidator.validate();
assertFindingsContain(Severity.ERROR, "character set");
h.characterSet = new CharacterSet();
rootValidator.validate();
assertNoIssues();
h.characterSet.characterSetName = null;
rootValidator.validate();
assertFindingsContain(Severity.ERROR, "character set", "name", "not", "defined");
h.characterSet.characterSetName = new StringWithCustomTags("FRYINGPAN");
rootValidator.validate();
assertFindingsContain(Severity.ERROR, "character set", "not", "supported");
h.characterSet.characterSetName = new StringWithCustomTags(Encoding.ASCII.getCharacterSetName());
rootValidator.validate();
assertNoIssues();
h.characterSet.customTags = null;
rootValidator.validate();