diff --git a/test/src/IOTest.java b/test/src/IOTest.java index 8cc455ee45adffd98c76b6d7a5df1e7a3ae26c40..48aded162e6750d02de37280ac33ca2913184732 100644 --- a/test/src/IOTest.java +++ b/test/src/IOTest.java @@ -54,8 +54,14 @@ public class IOTest { public void loadSOAPErrorTest() throws Exception { aparser = new AlignmentParser( 0 ); assertNotNull( aparser ); - alignment = aparser.parse( "test/input/soap.xml" ); - // error (we forgot to tell the parser that the alignment is embedded) + try { // shut-up log4j + com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler.silent = true; + alignment = aparser.parse( "test/input/soap.xml" ); + // error (we forgot to tell the parser that the alignment is embedded) + } catch (Exception ex) { + com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler.silent = false; + throw ex; + } } @Test(groups = { "full", "io", "raw" }, dependsOnMethods = {"loadSOAPErrorTest"})