Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 884d931c authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- slilenced logging in case of the incorrect message parsing

parent 317fcb0c
No related branches found
No related tags found
No related merge requests found
...@@ -54,8 +54,14 @@ public class IOTest { ...@@ -54,8 +54,14 @@ public class IOTest {
public void loadSOAPErrorTest() throws Exception { public void loadSOAPErrorTest() throws Exception {
aparser = new AlignmentParser( 0 ); aparser = new AlignmentParser( 0 );
assertNotNull( aparser ); assertNotNull( aparser );
alignment = aparser.parse( "test/input/soap.xml" ); try { // shut-up log4j
// error (we forgot to tell the parser that the alignment is embedded) 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"}) @Test(groups = { "full", "io", "raw" }, dependsOnMethods = {"loadSOAPErrorTest"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment