summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java28
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java16
2 files changed, 23 insertions, 21 deletions
diff --git a/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java b/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java
index 767125c3fccd..860eeddcb319 100644
--- a/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java
+++ b/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java
@@ -161,21 +161,22 @@ public class _XDocumentInsertable extends MultiMethodTest {
result = false ;
}
- try {
- PropertyValue [] szEmptyArgs = new PropertyValue [0];
- String docURL = "file:///c:/ThisIsAnInvaldURL";
- log.println("Inserting document from URL '" + docURL + "'");
- oObj.insertDocumentFromURL(docURL, szEmptyArgs);
-
- result=false;
-
- } catch (IOException ex) {
- log.println("expected exception was thrown -> ok");
- } catch (com.sun.star.lang.IllegalArgumentException ex) {
- log.println("expected exception was thrown -> ok");
+ if (result) {
+ try {
+ PropertyValue [] szEmptyArgs = new PropertyValue [0];
+ String docURL = "file:///c:/ThisIsAnInvaldURL";
+ log.println("Inserting document from URL '" + docURL + "'");
+ oObj.insertDocumentFromURL(docURL, szEmptyArgs);
+
+ result=false;
+
+ } catch (IOException ex) {
+ log.println("expected exception was thrown -> ok");
+ } catch (com.sun.star.lang.IllegalArgumentException ex) {
+ log.println("expected exception was thrown -> ok");
+ }
}
-
tRes.tested("insertDocumentFromURL()", result);
}
@@ -187,4 +188,3 @@ public class _XDocumentInsertable extends MultiMethodTest {
disposeEnvironment();
}
} // finish class _XDocumentInsertable
-
diff --git a/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java b/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java
index 27c320c46e37..20c4240c35bd 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java
@@ -106,13 +106,15 @@ public class _XFunctionDescriptions extends MultiMethodTest {
log.println("OK.");
- try {
- log.println("Now trying to get description with wrong id ... ");
- oObj.getById(-1);
- bResult = false;
- log.println("Exception expected! - FAILED");
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Expected exception " + e + " - OK!");
+ if (bResult) {
+ try {
+ log.println("Now trying to get description with wrong id ... ");
+ oObj.getById(-1);
+ bResult = false;
+ log.println("Exception expected! - FAILED");
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Expected exception " + e + " - OK!");
+ }
}
tRes.tested("getById()", bResult);