summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java b/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java
index 6a9e19322ed3..0d8eaba0fb5f 100644
--- a/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java
+++ b/qadevOOo/tests/java/mod/_sc/ScImportDescriptorBase.java
@@ -105,7 +105,7 @@ public class ScImportDescriptorBase extends TestCase {
@Override
public TestEnvironment createTestEnvironment( TestParameters tParam,
PrintWriter log )
- throws StatusException {
+ throws Exception {
XInterface oObj = null;
XImportable xIMP = null;
@@ -123,11 +123,7 @@ public class ScImportDescriptorBase extends TestCase {
log.println("getting a sheet");
XIndexAccess oIndexAccess = UnoRuntime.queryInterface(XIndexAccess.class, xSpreadsheets);
- try {
- oObj = UnoRuntime.queryInterface(XInterface.class,oIndexAccess.getByIndex(0));
- } catch (Exception e) {
- throw new StatusException( "Couldn't get a spreadsheet", e);
- }
+ oObj = UnoRuntime.queryInterface(XInterface.class,oIndexAccess.getByIndex(0));
xIMP = UnoRuntime.queryInterface(XImportable.class,oObj);