summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
diff options
context:
space:
mode:
authorStephan Wunderlich <sw@openoffice.org>2003-02-10 11:34:44 +0000
committerStephan Wunderlich <sw@openoffice.org>2003-02-10 11:34:44 +0000
commit7f1b7c7dcbdd7afea663e6b0737598112a4506fb (patch)
treee749b38af7f0a6665ddb7920f116247377fa973f /qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
parent1ffcd43873a79ee5c195868c58b1600cf19dee94 (diff)
CHG: use AnyConverter instead of simple cast
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
index 38a09cbdaa56..51e03c415b27 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTableRow.java
@@ -2,9 +2,9 @@
*
* $RCSfile: SwXTextTableRow.java,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change:$Date: 2003-01-27 18:18:23 $
+ * last change:$Date: 2003-02-10 12:34:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -77,6 +77,9 @@ import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
+import com.sun.star.uno.AnyConverter;
+import com.sun.star.uno.Type;
+
public class SwXTextTableRow extends TestCase {
XTextDocument xTextDoc;
@@ -99,9 +102,7 @@ public class SwXTextTableRow extends TestCase {
xTextDoc.dispose();
}
- public synchronized TestEnvironment createTestEnvironment(
- TestParameters Param, PrintWriter log )
- throws StatusException {
+ protected synchronized TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) {
XInterface oInterface = null;
XInterface oObj = null;
@@ -139,7 +140,8 @@ public class SwXTextTableRow extends TestCase {
XTableRows oTRn = oTable.getRows();
XIndexAccess oIA = (XIndexAccess) UnoRuntime.queryInterface
(XIndexAccess.class,oTRn);
- oObj = (XPropertySet) oIA.getByIndex(1);
+ oObj = (XPropertySet) AnyConverter.toObject(
+ new Type(XPropertySet.class),oIA.getByIndex(1));
} catch( Exception e ) {
e.printStackTrace(log);
}