diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XFunctionDescriptions.java | 16 |
1 files changed, 9 insertions, 7 deletions
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); |