public void _getLayer() {
String aLayerID = "org.openoffice.Office.Common";
boolean res = true;
try {
XLayer aLayer = oObj.getLayer("", "");
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");
}
try {
XLayer aLayer = oObj.getLayer(aLayerID, "");
res &= (aLayer != null);
if (aLayer == null) {
log.println("\treturned Layer is NULL -- FAILED");
}