true);
assertEquals("org.objectweb.celtix.test.custom", ts.getPackageName());
}
public void testErrorHandler() {
TypeSchemaErrorHandler eh = new TypeSchema.TypeSchemaErrorHandler();
SAXParseException spe = new SAXParseException(null, null, null, 0, 0);
try {
eh.error(spe);
fail("Expected SAXParseException not thrown.");
} catch (SAXParseException ex) {
// ignore;
}
try {
eh.warning(spe);
fail("Expected SAXParseException not thrown.");
} catch (SAXParseException ex) {
// ignore;
}
try {
eh.fatalError(spe);
fail("Expected SAXParseException not thrown.");
} catch (SAXParseException ex) {
// ignore;
}
}