tRes.tested("getComponentSchema()",res);
}
protected boolean checkSchema(XSchema aSchema) {
boolean res = false;
XSchemaHandlerImpl xSchemaHandlerImpl = new XSchemaHandlerImpl();
log.println("Checking for Exception in case of null argument");
try {
aSchema.readTemplates(null);
log.println("NoException thrown for null argument -- FAILED");
} catch (com.sun.star.lang.NullPointerException e) {
log.println("Expected Exception -- OK");
res = true;
} catch (com.sun.star.lang.WrappedTargetException e) {
log.println("Unexpected Exception (" + e + ") -- FAILED");
} catch (com.sun.star.configuration.backend.MalformedDataException e) {
log.println("Unexpected Exception (" + e + ") -- FAILED");
}
log.println(
"checking readComponent with own XSchemaHandler implementation");
try {
aSchema.readComponent(xSchemaHandlerImpl);
String implCalled = xSchemaHandlerImpl.getCalls();
int sc = implCalled.indexOf("startComponent");
if (sc < 0) {
log.println("startComponent wasn't called -- FAILED");
res &= false;