Skip to content

Commit

Permalink
debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Jan 5, 2024
1 parent d888da0 commit 8f060f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/java/failing/TestW3CSchemaNillable179.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;

import javax.xml.XMLConstants;
import javax.xml.transform.Source;
Expand Down Expand Up @@ -149,12 +151,15 @@ public void reportProblem(XMLValidationProblem problem)
fail("Woodstox MSV validator passed"
+ " but javax.xml.validation validator did not pass"
+ " for " + xsdResource + " and "+ xmlResource);

} else {
StringWriter sw = new StringWriter();
woodstoxE.printStackTrace(new PrintWriter(sw));

fail("Woodstox MSV validator did not pass"
+ " but javax.xml.validation validator passed"
+ " for " + xsdResource + " and "+ xmlResource
+".\nFailure: "+woodstoxE);
+".\nFailure: "+sw.toString());
}
}
}
Expand Down

0 comments on commit 8f060f5

Please sign in to comment.