diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-27 11:46:56 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-27 11:46:56 +0000 |
commit | 0c8f2335d9fd35164eb2116acba7f02a72e9ff4b (patch) | |
tree | b2dc1c0f07f73a6c6051b95e5a2a12d97c8dde3c /qadevOOo | |
parent | e258e510a351ba33ab62f1d18b020cf2ca3c71cf (diff) |
INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED
2003/05/21 10:56:07 sg 1.1.8.1: #109819# prepare devide of runner
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java | 6 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_fwk/Desktop.java | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java b/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java index 722a2e34607a..9007626b8177 100644 --- a/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java +++ b/qadevOOo/tests/java/mod/_ftransl/DataFormatTranslator.java @@ -2,9 +2,9 @@ * * $RCSfile: DataFormatTranslator.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:15:25 $ + * last change:$Date: 2003-05-27 12:46:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -104,7 +104,7 @@ public class DataFormatTranslator extends TestCase { Object oInterface = null; try { - XMultiServiceFactory xMSF = Param.getMSF(); + XMultiServiceFactory xMSF = (XMultiServiceFactory)Param.getMSF(); oInterface = xMSF.createInstance ( "com.sun.star.datatransfer.DataFormatTranslator" ); } diff --git a/qadevOOo/tests/java/mod/_fwk/Desktop.java b/qadevOOo/tests/java/mod/_fwk/Desktop.java index d097b4c59495..8ff940f909d3 100644 --- a/qadevOOo/tests/java/mod/_fwk/Desktop.java +++ b/qadevOOo/tests/java/mod/_fwk/Desktop.java @@ -2,9 +2,9 @@ * * $RCSfile: Desktop.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:15:29 $ + * last change:$Date: 2003-05-27 12:46:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -68,6 +68,7 @@ import lib.TestEnvironment; import lib.StatusException; import lib.Status; import com.sun.star.uno.XInterface; +import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.text.XTextDocument; import com.sun.star.uno.UnoRuntime; import com.sun.star.frame.XDesktop; @@ -133,7 +134,7 @@ public class Desktop extends TestCase { protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF()); String url = util.utils.getFullTestURL("XDocumentInsertable.sxw"); @@ -149,7 +150,7 @@ public class Desktop extends TestCase { XInterface oObj = null; try { - oObj = (XInterface)Param.getMSF().createInstance( + oObj = (XInterface)((XMultiServiceFactory)Param.getMSF()).createInstance( "com.sun.star.comp.framework.Desktop"); } catch(com.sun.star.uno.Exception e) { e.printStackTrace(log); @@ -167,4 +168,4 @@ public class Desktop extends TestCase { return tEnv; } // finish method getTestEnvironment -}
\ No newline at end of file +} |