From 942a662998a87b6c485d3187e1d039ba34324187 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 8 Sep 2003 12:16:07 +0000 Subject: INTEGRATION: CWS qadev11 (1.2.14); FILE MERGED 2003/09/03 15:35:38 sw 1.2.14.1: #112049# --- .../java/mod/_xmloff/Draw/XMLContentImporter.java | 23 +++++++++++----------- .../tests/java/mod/_xmloff/Draw/XMLExporter.java | 20 ++++++++++--------- 2 files changed, 22 insertions(+), 21 deletions(-) (limited to 'qadevOOo/tests/java/mod/_xmloff/Draw') diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java index ecbadcb502c4..742c5b72d057 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLContentImporter.java @@ -2,9 +2,9 @@ * * $RCSfile: XMLContentImporter.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change:$Date: 2003-05-27 14:12:12 $ + * last change:$Date: 2003-09-08 13:15:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,20 +61,21 @@ package mod._xmloff.Draw; +import java.io.PrintWriter; + +import lib.StatusException; +import lib.TestCase; +import lib.TestEnvironment; +import lib.TestParameters; +import util.SOfficeFactory; + import com.sun.star.container.XNamed; -import com.sun.star.document.XImporter; import com.sun.star.drawing.XDrawPages; import com.sun.star.drawing.XDrawPagesSupplier; import com.sun.star.lang.XComponent; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; -import java.io.PrintWriter; -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; -import util.SOfficeFactory; /** * Test for object which is represented by service @@ -154,7 +155,6 @@ public class XMLContentImporter extends TestCase { XInterface oObj = null; Object oInt = null ; - final String impValue = "XMLImporter_test" ; // creation of testobject here // first we write what we are intend to do to log file @@ -165,8 +165,7 @@ public class XMLContentImporter extends TestCase { try { oInt = xMSF.createInstance ("com.sun.star.comp.Draw.XMLContentImporter") ; - XImporter imp = (XImporter) - UnoRuntime.queryInterface(XImporter.class, oInt) ; + } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log) ; throw new StatusException("Can't create component.", e) ; diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java index b8a3d5ca1e35..5cd172fd5fc3 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java @@ -2,9 +2,9 @@ * * $RCSfile: XMLExporter.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change:$Date: 2003-05-27 14:12:21 $ + * last change:$Date: 2003-09-08 13:16:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,15 @@ package mod._xmloff.Draw; +import java.io.PrintWriter; + +import lib.StatusException; +import lib.TestCase; +import lib.TestEnvironment; +import lib.TestParameters; +import util.SOfficeFactory; +import util.XMLTools; + import com.sun.star.container.XNamed; import com.sun.star.document.XExporter; import com.sun.star.drawing.XDrawPage; @@ -74,13 +83,6 @@ import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; import com.sun.star.xml.sax.XDocumentHandler; -import java.io.PrintWriter; -import lib.StatusException; -import lib.TestCase; -import lib.TestEnvironment; -import lib.TestParameters; -import util.SOfficeFactory; -import util.XMLTools; /** * Test for object which is represented by service -- cgit