summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc')
-rw-r--r--qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java3
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java3
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java3
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java3
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java21
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java3
7 files changed, 13 insertions, 25 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java
index e0f9a2e8581b..360970b88a75 100644
--- a/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java
+++ b/qadevOOo/tests/java/mod/_sc/AccessibleEditableTextPara_PreviewCell.java
@@ -134,7 +134,7 @@ public class AccessibleEditableTextPara_PreviewCell extends TestCase {
xDispatcher.dispatch( aURL, null );
} catch (com.sun.star.uno.Exception e) {
log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
XAccessibleContext oObj = null;
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java
index 8e1e05ac40f7..fb6995dbc028 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleDocumentPagePreview.java
@@ -146,8 +146,7 @@ public class ScAccessibleDocumentPagePreview extends TestCase {
if(xDispatcher != null)
xDispatcher.dispatch( aURL, null );
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
try {
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java
index 552c7c0536d7..318e29dfe99b 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeader.java
@@ -132,8 +132,7 @@ public class ScAccessiblePageHeader extends TestCase {
if(xDispatcher != null)
xDispatcher.dispatch( aURL, null );
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java
index e05f4da4f220..f63df1bbf2db 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePageHeaderArea.java
@@ -128,8 +128,7 @@ public class ScAccessiblePageHeaderArea extends TestCase {
if(xDispatcher != null)
xDispatcher.dispatch( aURL, null );
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
try {
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java
index bb6c5e2e5450..b67fbf657ab5 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewCell.java
@@ -156,8 +156,7 @@ public class ScAccessiblePreviewCell extends TestCase {
if(xDispatcher != null)
xDispatcher.dispatch( aURL, null );
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
index 4f83e467aad9..388249d8c7d4 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
@@ -189,30 +189,24 @@ public class ScAccessiblePreviewHeaderCell extends TestCase {
xPropSet = UnoRuntime.queryInterface(
XPropertySet.class, oDefStyle);
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't get element"));
+ throw new StatusException(e, Status.failed("Couldn't get element"));
} catch (com.sun.star.container.NoSuchElementException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed("Couldn't get element"));
+ throw new StatusException(e, Status.failed("Couldn't get element"));
}
try {
xPropSet.setPropertyValue("PrintHeaders", Boolean.TRUE);
} catch (com.sun.star.lang.WrappedTargetException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
} catch (com.sun.star.lang.IllegalArgumentException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
} catch (com.sun.star.beans.PropertyVetoException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
} catch (com.sun.star.beans.UnknownPropertyException e) {
- e.printStackTrace(log);
- throw new StatusException(Status.failed(
+ throw new StatusException(e, Status.failed(
"Couldn't set property 'PrintHeaders'"));
}
@@ -237,8 +231,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase {
xDispatcher.dispatch(aURL, null);
}
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
XInterface oObj = null;
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java
index 7f5ecd269f84..f2e963f36722 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewTable.java
@@ -159,8 +159,7 @@ public class ScAccessiblePreviewTable extends TestCase {
if(xDispatcher != null)
xDispatcher.dispatch( aURL, null );
} catch (com.sun.star.uno.Exception e) {
- log.println("Couldn't change mode");
- throw new StatusException(Status.failed("Couldn't change mode"));
+ throw new StatusException(e, Status.failed("Couldn't change mode"));
}
XAccessible xRoot;