Add LegalOrganisation.TradingBusinessName and DefinedTradeContact also for Recipient.
This commit is contained in:
@@ -244,8 +244,31 @@ public class LibraryTest extends ResourceCase {
|
||||
.isEqualTo(0);
|
||||
}
|
||||
|
||||
public void testMinimumProfileValidity() {
|
||||
File tempFile = new File("../library/target/testout-Minimum.pdf");
|
||||
public void testMinimumProfileValidityInvoice() {
|
||||
File tempFile = new File("../library/target/testout-Minimum-INV.pdf");
|
||||
ZUGFeRDValidator zfv = new ZUGFeRDValidator();
|
||||
|
||||
String res = zfv.validate(tempFile.getAbsolutePath());
|
||||
|
||||
assertThat(res).valueByXPath("count(//error)")
|
||||
.asInt()
|
||||
.isEqualTo(0);
|
||||
assertThat(res).valueByXPath("/validation/summary/@status")
|
||||
.asString()
|
||||
.isEqualTo("valid");// expect to be valid because XR notices are, well, only notices
|
||||
assertThat(res).valueByXPath("/validation/xml/summary/@status")
|
||||
.asString()
|
||||
.isEqualTo("valid");
|
||||
/** end of errors due to version mismatch*/
|
||||
|
||||
|
||||
assertThat(res).valueByXPath("count(//notice)")
|
||||
.asInt()
|
||||
.isEqualTo(0);
|
||||
}
|
||||
|
||||
public void testMinimumProfileValidityCreditNote() {
|
||||
File tempFile = new File("../library/target/testout-Minimum-CN.pdf");
|
||||
ZUGFeRDValidator zfv = new ZUGFeRDValidator();
|
||||
|
||||
String res = zfv.validate(tempFile.getAbsolutePath());
|
||||
|
||||
Reference in New Issue
Block a user