diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 11:59:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 16:39:20 +0100 |
commit | d2a3b21ade0896520440eef15a88216d995d0ee9 (patch) | |
tree | 19c2b357bc1e40f94eaf6551cf00b158e9369fd9 /qadevOOo/tests/java/ifc | |
parent | 7a3f09216e4708391b802b0f26e87baa05393ef0 (diff) |
coverity#1132709 Uncaught exception
Change-Id: If828f82e36d12ceca7e6392de5757a131c99462c
Diffstat (limited to 'qadevOOo/tests/java/ifc')
-rw-r--r-- | qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java | 10 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java | 12 |
2 files changed, 21 insertions, 1 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java index 8e8d4e9ba2c6..ce54ea09c6b9 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java @@ -444,6 +444,10 @@ public class _XAccessibleEditableText extends MultiMethodTest { } catch(com.sun.star.lang.IndexOutOfBoundsException e) { log.println("expected exception => OK"); res &= true; + } catch(com.sun.star.beans.UnknownPropertyException e) { + log.println("unexpected exception => FAILED"); + e.printStackTrace(log); + res &= false; } try { @@ -483,6 +487,10 @@ public class _XAccessibleEditableText extends MultiMethodTest { log.println("unexpected exception => FAILED"); e.printStackTrace(log); res &= false; + } catch(com.sun.star.beans.UnknownPropertyException e) { + log.println("unexpected exception => FAILED"); + e.printStackTrace(log); + res &= false; } tRes.tested("setAttributes()", res); @@ -532,4 +540,4 @@ public class _XAccessibleEditableText extends MultiMethodTest { protected void after() { oObj.setText(initialText); } -}
\ No newline at end of file +} diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java index da9e379b32b0..9f4f5c090450 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java @@ -292,6 +292,10 @@ public class _XAccessibleText extends MultiMethodTest { } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Expected exception"); res &= true; + } catch(com.sun.star.beans.UnknownPropertyException e) { + log.println("unexpected exception => FAILED"); + e.printStackTrace(log); + res &= false; } try { @@ -302,6 +306,10 @@ public class _XAccessibleText extends MultiMethodTest { } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Expected exception"); res &= true; + } catch(com.sun.star.beans.UnknownPropertyException e) { + log.println("unexpected exception => FAILED"); + e.printStackTrace(log); + res &= false; } try { @@ -315,6 +323,10 @@ public class _XAccessibleText extends MultiMethodTest { log.println("Unexpected exception"); e.printStackTrace(log); res &= false; + } catch(com.sun.star.beans.UnknownPropertyException e) { + log.println("unexpected exception => FAILED"); + e.printStackTrace(log); + res &= false; } tRes.tested("getCharacterAttributes()", res); |