use of org.xml.sax.helpers.LocatorImpl in project jPOS by jpos.
the class GenericValidatingPackagerTest method testGenericValidatorContentHandlerErrorThrowsSAXParseException.
@Test
public void testGenericValidatorContentHandlerErrorThrowsSAXParseException() throws Throwable {
SAXParseException ex2 = new SAXParseException("testGenericValidatorContentHandlerParam1", new LocatorImpl());
try {
new GenericValidatingPackager().new GenericValidatorContentHandler().error(ex2);
fail("Expected SAXParseException to be thrown");
} catch (SAXParseException ex) {
assertEquals("ex.getMessage()", "testGenericValidatorContentHandlerParam1", ex.getMessage());
assertNull("ex.getPublicId()", ex.getPublicId());
assertNull("ex.getSystemId()", ex.getSystemId());
assertEquals("ex.getLineNumber()", 0, ex.getLineNumber());
assertEquals("ex.getColumnNumber()", 0, ex.getColumnNumber());
assertNull("ex.getException()", ex.getException());
}
}
Aggregations