updated a test to fail
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2.10.0
|
2.10.0
|
||||||
-
|
=======
|
||||||
|
2023-12-30
|
||||||
|
|
||||||
- also accept pdf/a3 from inputstream
|
- also accept pdf/a3 from inputstream
|
||||||
- closes #354 factur-x 1 from commandline
|
- closes #354 factur-x 1 from commandline
|
||||||
- support XR 3.0.1 (#343),
|
- support XR 3.0.1 (#343),
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ If you setup a Maven project, you can grab the artifacts using
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mustangproject</groupId>
|
<groupId>org.mustangproject</groupId>
|
||||||
<artifactId>library</artifactId>
|
<artifactId>library</artifactId>
|
||||||
<version>2.6.1</version>
|
<version>2.10.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -179,16 +179,15 @@ public class LibraryTest extends ResourceCase {
|
|||||||
ZUGFeRDValidator zfv = new ZUGFeRDValidator();
|
ZUGFeRDValidator zfv = new ZUGFeRDValidator();
|
||||||
|
|
||||||
String res = zfv.validate(tempFile.getAbsolutePath());
|
String res = zfv.validate(tempFile.getAbsolutePath());
|
||||||
|
|
||||||
assertThat(res).valueByXPath("count(//error)")
|
assertThat(res).valueByXPath("count(//error)")
|
||||||
.asInt()
|
.asInt()
|
||||||
.isEqualTo(0);
|
.isEqualTo(1);// there is an error inthe XRechnung validatoion artefacts: https://github.com/itplr-kosit/validator-configuration-xrechnung/issues/84
|
||||||
assertThat(res).valueByXPath("/validation/summary/@status")
|
assertThat(res).valueByXPath("/validation/summary/@status")
|
||||||
.asString()
|
.asString()
|
||||||
.isEqualTo("valid");// expect to be valid because XR notices are, well, only notices
|
.isEqualTo("invalid");// expect to be valid because XR notices are, well, only notices
|
||||||
assertThat(res).valueByXPath("/validation/xml/summary/@status")
|
assertThat(res).valueByXPath("/validation/xml/summary/@status")
|
||||||
.asString()
|
.asString()
|
||||||
.isEqualTo("valid");
|
.isEqualTo("invalid");
|
||||||
|
|
||||||
assertThat(res).valueByXPath("count(//notice)")
|
assertThat(res).valueByXPath("count(//notice)")
|
||||||
.asInt()
|
.asInt()
|
||||||
|
|||||||
Reference in New Issue
Block a user