Relative charges/allowances on document level
This commit is contained in:
@@ -80,6 +80,25 @@ public class LibraryTest extends ResourceCase {
|
||||
|
||||
}
|
||||
|
||||
public void testLibraryPushRelativeAllowances() {
|
||||
File tempFile = new File("../library/target/testout-ZF2PushRelativeChargesAllowances.pdf");
|
||||
assertTrue(tempFile.exists());
|
||||
ZUGFeRDValidator zfv = new ZUGFeRDValidator();
|
||||
|
||||
String res = zfv.validate(tempFile.getAbsolutePath());
|
||||
|
||||
|
||||
assertThat(res).valueByXPath("/validation/pdf/summary/@status")
|
||||
.isEqualTo("valid");
|
||||
|
||||
assertThat(res).valueByXPath("/validation/xml/summary/@status")
|
||||
.isEqualTo("valid");
|
||||
|
||||
assertThat(res).valueByXPath("/validation/summary/@status")
|
||||
.isEqualTo("valid");
|
||||
|
||||
}
|
||||
|
||||
public void testLibraryPushAllowances() {
|
||||
File tempFile = new File("../library/target/testout-ZF2PushChargesAllowances.pdf");
|
||||
assertTrue(tempFile.exists());
|
||||
|
||||
@@ -64,6 +64,11 @@ public class ZUGFeRDValidatorTest extends ResourceCase {
|
||||
assertThat(res).valueByXPath("/validation/summary/@status")
|
||||
.isEqualTo("invalid");
|
||||
|
||||
zfv = new ZUGFeRDValidator();
|
||||
res = zfv.validate("/does/not/exist");
|
||||
assertThat(res).valueByXPath("/validation/summary/@status")
|
||||
.isEqualTo("invalid");
|
||||
|
||||
}
|
||||
|
||||
/***
|
||||
|
||||
Reference in New Issue
Block a user