Search in sources :

Example 1 with GZIPReadableResource

use of com.helger.commons.io.resource.wrapped.GZIPReadableResource in project ph-schematron by phax.

the class Issue29Test method testGood.

@Test
@Ignore("Takes too long - more than 1 min")
public void testGood() throws Exception {
    final SchematronOutputType aSOT = validateXmlUsingSchematron(new GZIPReadableResource(new ClassPathResource("issues/github29/sample.xml.gz")));
    assertNotNull(aSOT);
    final ICommonsList<SVRLFailedAssert> aErrors = SVRLHelper.getAllFailedAssertions(aSOT);
    assertNotNull(aErrors);
    s_aLogger.info("Errors found: " + aErrors);
}
Also used : SchematronOutputType(org.oclc.purl.dsdl.svrl.SchematronOutputType) SVRLFailedAssert(com.helger.schematron.svrl.SVRLFailedAssert) ClassPathResource(com.helger.commons.io.resource.ClassPathResource) GZIPReadableResource(com.helger.commons.io.resource.wrapped.GZIPReadableResource) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

ClassPathResource (com.helger.commons.io.resource.ClassPathResource)1 GZIPReadableResource (com.helger.commons.io.resource.wrapped.GZIPReadableResource)1 SVRLFailedAssert (com.helger.schematron.svrl.SVRLFailedAssert)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 SchematronOutputType (org.oclc.purl.dsdl.svrl.SchematronOutputType)1