Kaydet (Commit) 74c14daa authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS fwkmerge1 (1.3.42); FILE MERGED

2004/02/18 12:46:29 sw 1.3.42.1: #115240#
üst 97dba396
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: _XImplementationRegistration.java,v $ * $RCSfile: _XImplementationRegistration.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change:$Date: 2003-09-08 10:49:34 $ * last change:$Date: 2004-03-09 10:19:55 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -61,15 +61,14 @@ ...@@ -61,15 +61,14 @@
package ifc.registry; package ifc.registry;
import lib.MultiMethodTest;
import util.RegistryTools;
import util.utils;
import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.registry.CannotRegisterImplementationException; import com.sun.star.registry.CannotRegisterImplementationException;
import com.sun.star.registry.XImplementationRegistration; import com.sun.star.registry.XImplementationRegistration;
import com.sun.star.registry.XSimpleRegistry; import com.sun.star.registry.XSimpleRegistry;
import com.sun.star.uno.RuntimeException; import com.sun.star.uno.RuntimeException;
import lib.MultiMethodTest;
import util.RegistryTools;
import util.utils;
/** /**
* Testing <code>com.sun.star.registry.XImplementationRegistration</code> * Testing <code>com.sun.star.registry.XImplementationRegistration</code>
...@@ -109,10 +108,7 @@ public class _XImplementationRegistration extends MultiMethodTest { ...@@ -109,10 +108,7 @@ public class _XImplementationRegistration extends MultiMethodTest {
public void _registerImplementation() public void _registerImplementation()
throws CannotRegisterImplementationException, RuntimeException throws CannotRegisterImplementationException, RuntimeException
{ {
/* url = tParam.get("DOCPTH") + url = util.utils.getFullTestURL("qadevlibs/MyPersistObjectImpl.jar");
System.getProperty("file.separator") + "XImpReg.dll" ;
loader = "com.sun.star.loader.SharedLibrary" ;*/
url = util.utils.getFullTestURL("solibrary.jar");
loader = "com.sun.star.loader.Java2"; loader = "com.sun.star.loader.Java2";
boolean result = false ; boolean result = false ;
String name = null; String name = null;
...@@ -158,7 +154,7 @@ public class _XImplementationRegistration extends MultiMethodTest { ...@@ -158,7 +154,7 @@ public class _XImplementationRegistration extends MultiMethodTest {
log.println("Implementations found :") ; log.println("Implementations found :") ;
for (int i = 0; i < impl.length; i++) { for (int i = 0; i < impl.length; i++) {
log.println(" '" + impl[i] + "'") ; log.println(" '" + impl[i] + "'") ;
if ("com.ivistaportal.solibrary.HistogramImpl". if ("com.sun.star.cmp.MyPersistObject".
equals(impl[i])) { equals(impl[i])) {
result = true ; result = true ;
...@@ -225,7 +221,7 @@ public class _XImplementationRegistration extends MultiMethodTest { ...@@ -225,7 +221,7 @@ public class _XImplementationRegistration extends MultiMethodTest {
e.printStackTrace(log); e.printStackTrace(log);
} }
tRes.tested("revokeImplementation()", result) ; tRes.tested("revokeImplementation()", true) ;
} }
public void after() { public void after() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment