Skip to content

Commit

Permalink
nicer exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Jun 24, 2024
1 parent 1155973 commit 1089954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testZF1Export() {
// assertFalse(pdfContent.indexOf("urn:zugferd:pdfa:CrossIndustryDocument:invoice:2p0#") == -1);

} catch (IOException e) {
fail("IOException should not happen in testZExport");
fail("IOException should not happen in testZF1Export:"+e.getMessage());
}

// now check the contents (like MustangReaderTest)
Expand Down Expand Up @@ -113,7 +113,7 @@ public void testZF2Export() {
// assertFalse(pdfContent.indexOf("urn:zugferd:pdfa:CrossIndustryDocument:invoice:2p0#") == -1);

} catch (IOException e) {
fail("IOException should not happen in testZExport");
fail("IOException should not happen in testZF2Export:"+e.getMessage());
}

// now check the contents (like MustangReaderTest)
Expand All @@ -132,7 +132,7 @@ public void testFXExport() {

// the writing part
try (InputStream SOURCE_PDF = this.getClass()
.getResourceAsStream("/MustangGnuaccountingBeispielRE-20190610_507blanko.pdf");
.getResourceAsStream("/MustangGnuaccountingBeispielRE-20201121_508blanko.pdf");

IZUGFeRDExporter ze = new ZUGFeRDExporterFromA1().setZUGFeRDVersion(2).setProfile("EN16931").load(SOURCE_PDF)) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void testZExport() {
// assertFalse(pdfContent.indexOf("urn:zugferd:pdfa:CrossIndustryDocument:invoice:2p0#") == -1);

} catch (IOException e) {
fail("IOException should not happen in testZExport");
fail("IOException should not happen in testZExport:"+e.getMessage());
}

// now check the contents (like MustangReaderTest)
Expand Down Expand Up @@ -418,7 +418,7 @@ public void testZExportv1Profile() {
assertTrue(pdfContent.indexOf(DocumentContextParameterTypeConstants.COMFORT) >= 0);

} catch (IOException e) {
fail("IOException should not happen in testZExport");
fail("IOException should not happen in testZExportv1Profile:"+e.getMessage());
}
}

Expand Down

0 comments on commit 1089954

Please sign in to comment.