@Test(expected = SubmissionLevelException.class) public void testInvalidRecordParseFile() throws IOException, SubmissionLevelException { String content = "edfi-xml,StudentEnrollmentdata.xml"; ControlFile controlFile = getControlFileFor(content); controlFile.parse(new DummyMessageReport()); }
public static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report) throws IOException, SubmissionLevelException { ControlFile cf = new ControlFile(parentZipFileOrDirectory, controlFileName); cf.parse(report); return cf; }
ControlFile extends IngestionFileEntry { public static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report) throws IOException, SubmissionLevelException { ControlFile cf = new ControlFile(parentZipFileOrDirectory, controlFileName); cf.parse(report); return cf; } }
ControlFile extends IngestionFileEntry { public static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report) throws IOException, SubmissionLevelException { ControlFile cf = new ControlFile(parentZipFileOrDirectory, controlFileName); cf.parse(report); return cf; } protected  ControlFile(String parentZipFileOrDirectory, String fileName); }
ControlFile extends IngestionFileEntry { public static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report) throws IOException, SubmissionLevelException { ControlFile cf = new ControlFile(parentZipFileOrDirectory, controlFileName); cf.parse(report); return cf; } protected  ControlFile(String parentZipFileOrDirectory, String fileName); static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report); void parse(AbstractMessageReport report); List<IngestionFileEntry> getFileEntries(); Properties getConfigProperties(); @Override int hashCode(); @Override boolean equals(Object obj); }
ControlFile extends IngestionFileEntry { public static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report) throws IOException, SubmissionLevelException { ControlFile cf = new ControlFile(parentZipFileOrDirectory, controlFileName); cf.parse(report); return cf; } protected  ControlFile(String parentZipFileOrDirectory, String fileName); static ControlFile parse(String parentZipFileOrDirectory, String controlFileName, AbstractMessageReport report); void parse(AbstractMessageReport report); List<IngestionFileEntry> getFileEntries(); Properties getConfigProperties(); @Override int hashCode(); @Override boolean equals(Object obj);  }