corrected test cases

This commit is contained in:
jstaerk
2024-05-17 14:24:42 +02:00
parent d5df6d9b3e
commit 0720c76b50
2 changed files with 12 additions and 12 deletions

View File

@@ -181,13 +181,13 @@ public class LibraryTest extends ResourceCase {
String res = zfv.validate(tempFile.getAbsolutePath());
assertThat(res).valueByXPath("count(//error)")
.asInt()
.isEqualTo(1);// there is an error inthe XRechnung validatoion artefacts: https://github.com/itplr-kosit/validator-configuration-xrechnung/issues/84
.isEqualTo(0);
assertThat(res).valueByXPath("/validation/summary/@status")
.asString()
.isEqualTo("invalid");// expect to be valid because XR notices are, well, only notices
.isEqualTo("valid");// expect to be valid because XR notices are, well, only notices
assertThat(res).valueByXPath("/validation/xml/summary/@status")
.asString()
.isEqualTo("invalid");
.isEqualTo("valid");
assertThat(res).valueByXPath("count(//notice)")
.asInt()