public void _getUpdatableLayer() {
String aLayerID = "org.openoffice.Office.Common";
boolean res = true;
try {
XUpdatableLayer aLayer = oObj.getUpdatableLayer("");
log.println("Exception expected -- FAILED");
res = false;
} catch (com.sun.star.configuration.backend.BackendAccessException e) {
log.println("unexpected Exception " + e + " -- FAILED");
res = false;
} catch (com.sun.star.lang.IllegalArgumentException e) {
log.println("expected Exception -- OK");
} catch (com.sun.star.lang.NoSupportException e) {
log.println("unexpected Exception -- FAILED");
res = false;
}
try {
XUpdatableLayer aLayer = oObj.getUpdatableLayer(aLayerID);
res &= (aLayer != null);
if (aLayer == null) {
log.println("\treturned Layer is NULL -- FAILED");
}