summaryrefslogtreecommitdiff
path: root/codemaker/test/javamaker/java15
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-17 19:12:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-17 19:12:34 +0200
commitd2092dc56b19c24b481f64fa9708f4ed3f9c8dfb (patch)
tree5937cba7d2631472474897e01e0d5854c5258c88 /codemaker/test/javamaker/java15
parent1b699e5c20577298624dbc86196f6421c386915b (diff)
Keep null service manager throw a DeploymentException
...rather than a general RuntimeException, for consistency with existing service ctor code. Change-Id: Ia9ac14a1b5bcecb24394e7b9cade369f3f9303f0
Diffstat (limited to 'codemaker/test/javamaker/java15')
-rw-r--r--codemaker/test/javamaker/java15/Test.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/codemaker/test/javamaker/java15/Test.java b/codemaker/test/javamaker/java15/Test.java
index 40401cf010be..30ffb4102781 100644
--- a/codemaker/test/javamaker/java15/Test.java
+++ b/codemaker/test/javamaker/java15/Test.java
@@ -19,6 +19,7 @@
package test.codemaker.javamaker.java15;
import com.sun.star.lang.XMultiComponentFactory;
+import com.sun.star.uno.DeploymentException;
import com.sun.star.uno.XComponentContext;
import complexlib.ComplexTestCase;
@@ -68,18 +69,18 @@ public final class Test extends ComplexTestCase {
}
public XMultiComponentFactory getServiceManager() {
- throw new com.sun.star.uno.RuntimeException();
+ throw new DeploymentException();
}
};
try {
Service.create(context);
failed();
- } catch (com.sun.star.uno.RuntimeException e) {}
+ } catch (DeploymentException e) {}
try {
Service.create(
context, false, (byte) 1, (short) 2, Integer.valueOf(4));
failed();
- } catch (com.sun.star.uno.RuntimeException e) {}
+ } catch (DeploymentException e) {}
}
private static final class Ifc implements XIfc {