Reintroduced this test after upgrade to ph-schematron 5

This commit is contained in:
Jochen Stärk
2018-06-10 07:22:53 +02:00
parent 7875841b32
commit 3d06592bc3

View File

@@ -18,6 +18,7 @@
*********************************************************************** */
package org.mustangproject.ZUGFeRD;
import com.helger.commons.state.EValidity;
import com.helger.schematron.ISchematronResource;
import com.helger.schematron.pure.SchematronResourcePure;
import javax.xml.bind.JAXBContext;
@@ -36,7 +37,7 @@ public class ZUGFeRDXMLAssert {
}
public static void assertValidZugferd(Node xml) throws Exception {
// Assert.assertTrue("schema valid", SCHEMATRON.getSchematronValidity(xml).isValid());
Assert.assertTrue("schema valid", SCHEMATRON.getSchematronValidity(xml, null).isValid());
}
private static Document toDocument(Object jaxbElement) throws Exception {