diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java index 6bc034aa7b46..56d80ffaf6d3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java @@ -2,9 +2,9 @@ * * $RCSfile: ScIndexEnumeration_SpreadsheetViewPanesEnumeration.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:16:22 $ + * last change:$Date: 2003-02-03 13:35:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -78,6 +78,9 @@ import lib.TestEnvironment; import lib.TestParameters; import util.SOfficeFactory; +import com.sun.star.uno.AnyConverter; +import com.sun.star.uno.Type; + public class ScIndexEnumeration_SpreadsheetViewPanesEnumeration extends TestCase { private XSpreadsheetDocument xSpreadsheetDoc; private SOfficeFactory SOF; @@ -117,13 +120,17 @@ public class ScIndexEnumeration_SpreadsheetViewPanesEnumeration extends TestCase XIndexAccess xIA = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xc); try { - oObj = (XInterface)xIA.getByIndex(0); + oObj = (XInterface) AnyConverter.toObject( + new Type(XInterface.class),xIA.getByIndex(0)); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); throw new StatusException("Couldn't get by index", e); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { e.printStackTrace(log); throw new StatusException("Couldn't get by index", e); + } catch (com.sun.star.lang.IllegalArgumentException e) { + e.printStackTrace(log); + throw new StatusException("Couldn't get by index", e); } XEnumerationAccess ea = (XEnumerationAccess) |