From 884d931c0cb73ed305e05f2d747df411e1901f58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Mon, 8 Mar 2010 09:08:47 +0000
Subject: [PATCH] - slilenced logging in case of the incorrect message parsing

---
 test/src/IOTest.java | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/test/src/IOTest.java b/test/src/IOTest.java
index 8cc455ee..48aded16 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"})
-- 
GitLab