diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 19:20:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 19:20:55 +0100 |
commit | cc4f4e2054ba1c5676ebb1890e85d0f9b0b19262 (patch) | |
tree | 8b2c0b448fdb23c8c0cbc791b1c6757ee03e8dd7 /toolkit/qa/complex | |
parent | 4a1888a97eab4ead2e0bec76cd1cba410a8e7e13 (diff) |
catch UnknownPropertyException
Change-Id: I3134c574a124a2359c40b139eb5b41198b0e4611
Diffstat (limited to 'toolkit/qa/complex')
-rw-r--r-- | toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java index 61f1bd480f6b..9f6b60fd42ad 100644 --- a/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java +++ b/toolkit/qa/complex/toolkit/accessibility/_XAccessibleText.java @@ -25,6 +25,7 @@ import com.sun.star.awt.Point; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.accessibility.AccessibleTextType; import com.sun.star.accessibility.TextSegment; +import com.sun.star.beans.UnknownPropertyException; import com.sun.star.uno.XInterface; import com.sun.star.uno.UnoRuntime; @@ -235,6 +236,9 @@ public class _XAccessibleText { } catch(com.sun.star.lang.IndexOutOfBoundsException e) { System.out.println("Expected exception"); res &= true; + } catch(com.sun.star.beans.UnknownPropertyException e) { + System.out.println("unexpected exception => FAILED"); + res &= false; } try { @@ -245,6 +249,9 @@ public class _XAccessibleText { } catch(com.sun.star.lang.IndexOutOfBoundsException e) { System.out.println("Expected exception"); res &= true; + } catch(com.sun.star.beans.UnknownPropertyException e) { + System.out.println("unexpected exception => FAILED"); + res &= false; } try { @@ -257,6 +264,9 @@ public class _XAccessibleText { System.out.println("Unexpected exception"); e.printStackTrace(); res &= false; + } catch(com.sun.star.beans.UnknownPropertyException e) { + System.out.println("unexpected exception => FAILED"); + res &= false; } return res; |