summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java')
-rw-r--r--qadevOOo/tests/java/ifc/document/_XDocumentInsertable.java28
1 files changed, 14 insertions, 14 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
-