diff options
Diffstat (limited to 'codemaker/test')
-rw-r--r-- | codemaker/test/javamaker/java15/Test.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/codemaker/test/javamaker/java15/Test.java b/codemaker/test/javamaker/java15/Test.java index 30b9e08d68ab..40401cf010be 100644 --- a/codemaker/test/javamaker/java15/Test.java +++ b/codemaker/test/javamaker/java15/Test.java @@ -19,7 +19,6 @@ 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; @@ -69,18 +68,18 @@ public final class Test extends ComplexTestCase { } public XMultiComponentFactory getServiceManager() { - return null; + throw new com.sun.star.uno.RuntimeException(); } }; try { Service.create(context); failed(); - } catch (DeploymentException e) {} + } catch (com.sun.star.uno.RuntimeException e) {} try { Service.create( context, false, (byte) 1, (short) 2, Integer.valueOf(4)); failed(); - } catch (DeploymentException e) {} + } catch (com.sun.star.uno.RuntimeException e) {} } private static final class Ifc implements XIfc { |