summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java
index 68e47d2da0f0..18b6e910266c 100644
--- a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java
+++ b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java
@@ -70,13 +70,15 @@ public class _XMimeContentTypeFactory extends MultiMethodTest {
result = false ;
}
- try {
- oObj.createMimeContentType("nosuchtype") ;
+ if (result == true) {
+ try {
+ oObj.createMimeContentType("nosuchtype") ;
- log.println("!!! No exception was thrown on wrong MIME type !!!") ;
- result = false ;
- } catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("Right exception was thrown." ) ;
+ log.println("!!! No exception was thrown on wrong MIME type !!!") ;
+ result = false ;
+ } catch (com.sun.star.lang.IllegalArgumentException e) {
+ log.println("Right exception was thrown." ) ;
+ }
}
tRes.tested("createMimeContentType()", result) ;