diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/beans')
-rw-r--r-- | qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java | 4 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java index 81836c2c9b26..600be127c70a 100644 --- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java +++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertyStates.java @@ -133,9 +133,7 @@ public class _XMultiPropertyStates extends MultiMethodTest { prop = xPropSetInfo.getPropertyByName(names[i]); } catch(com.sun.star.beans.UnknownPropertyException e) { - log.println("couldn't get property info: " + e.toString()); - throw new StatusException(Status.failed - ("couldn't get property info")); + throw new StatusException(e, Status.failed("couldn't get property info")); } if ( (prop.Attributes & PropertyAttribute.MAYBEDEFAULT) != 0){ log.println("Property " + names[i] + diff --git a/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java b/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java index f7cf1114fdf9..6bc506ea2b8d 100644 --- a/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java +++ b/qadevOOo/tests/java/ifc/beans/_XPropertyWithState.java @@ -93,8 +93,7 @@ public class _XPropertyWithState extends MultiMethodTest { oObj.setToDefaultAsProperty(); } catch (com.sun.star.lang.WrappedTargetException e){ - e.printStackTrace(log); - throw new StatusException(Status.failed("'com.sun.star.lang.WrappedTargetException' was thrown")); + throw new StatusException(e, Status.failed("'com.sun.star.lang.WrappedTargetException' was thrown")); } tRes.tested("setToDefaultAsProperty()", true); |