no message
This commit is contained in:
@@ -8,7 +8,8 @@
|
|||||||
- complete or discard read into push provider
|
- complete or discard read into push provider
|
||||||
- validate as library doc
|
- validate as library doc
|
||||||
- javadoc export
|
- javadoc export
|
||||||
|
- prompt for source file for validation has to be pdf
|
||||||
|
- be able to disable "source pdf set to timeout"
|
||||||
done
|
done
|
||||||
- 2.1 now default
|
- 2.1 now default
|
||||||
- pushprovider
|
- pushprovider
|
||||||
|
|||||||
@@ -113,6 +113,35 @@ public class XMLValidatorTest extends ResourceCase {
|
|||||||
|
|
||||||
ctx.clear();
|
ctx.clear();
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
tempFile = getResourceAsFile("validv2.xml");
|
||||||
|
|
||||||
|
xv.setFilename(tempFile.getAbsolutePath());
|
||||||
|
|
||||||
|
xv.validate();
|
||||||
|
} catch (IrrecoverableValidationError e) {
|
||||||
|
// ignore, will be in XML output anyway
|
||||||
|
}
|
||||||
|
res = xv.getXMLResult();
|
||||||
|
|
||||||
|
content = "<validation>" + res + "</validation>";
|
||||||
|
|
||||||
|
assertThat(content).valueByXPath("count(//error)")
|
||||||
|
.asInt()
|
||||||
|
.isEqualTo(0);
|
||||||
|
|
||||||
|
assertThat(content).valueByXPath("count(//notice)")
|
||||||
|
.asInt()
|
||||||
|
.isEqualTo(3); // 3 notices RE XRechnung
|
||||||
|
assertThat(content).valueByXPath("/validation/summary/@status")
|
||||||
|
.asString()
|
||||||
|
.isEqualTo("valid");// expect to be valid because XR notices are, well, only notices
|
||||||
|
assertThat(content).valueByXPath("/validation/xml/@status")
|
||||||
|
.asString()
|
||||||
|
.isEqualTo("valid");
|
||||||
|
|
||||||
|
ctx.clear();
|
||||||
tempFile = getResourceAsFile("validV2Basic.xml");
|
tempFile = getResourceAsFile("validV2Basic.xml");
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<rsm:CrossIndustryInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
|
<rsm:CrossIndustryInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
|
||||||
<rsm:ExchangedDocumentContext>
|
<rsm:ExchangedDocumentContext>
|
||||||
<ram:GuidelineSpecifiedDocumentContextParameter>
|
<ram:GuidelineSpecifiedDocumentContextParameter>
|
||||||
<ram:ID>urn:cen.eu:en16931:2017:compliant:factur-x.eu:1p0:en16931</ram:ID>
|
<ram:ID>urn:cen.eu:en16931:2017#compliant:factur-x.eu:1p0:en16931</ram:ID>
|
||||||
</ram:GuidelineSpecifiedDocumentContextParameter>
|
</ram:GuidelineSpecifiedDocumentContextParameter>
|
||||||
</rsm:ExchangedDocumentContext>
|
</rsm:ExchangedDocumentContext>
|
||||||
<rsm:ExchangedDocument>
|
<rsm:ExchangedDocument>
|
||||||
|
|||||||
Reference in New Issue
Block a user