diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-06-04 02:04:10 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-06-04 02:04:10 +0000 |
commit | 6f7e5b0a77ffc9a50f5bfe6fcf796680f50c5d73 (patch) | |
tree | 5cdb436d1a99f555ae3da68ff255d3f65d76c7ae /bridges | |
parent | cfbd48c8e3456f47c7e95bbb89bf468340486440 (diff) |
INTEGRATION: CWS sb18 (1.2.100); FILE MERGED
2004/05/12 09:11:25 sb 1.2.100.1: #i21150# Adapted to instantiated polymorphic struct types.
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java | 6 | ||||
-rw-r--r-- | bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java | 25 |
2 files changed, 17 insertions, 14 deletions
diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java index 8f12a4920579..6fde3b958ed5 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java @@ -2,9 +2,9 @@ * * $RCSfile: Bug97697_Test.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2003-05-22 08:39:06 $ + * last change: $Author: obo $ $Date: 2004-06-04 03:03:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,7 +59,7 @@ * ************************************************************************/ -package com.sun.star.lib.uno.bridges.java_remote; +package com.sun.star.lib.uno.bridges.javaremote; import com.sun.star.bridge.XBridge; import com.sun.star.bridge.XInstanceProvider; diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java index e970c4a448ca..9ed8b9147c6d 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java +++ b/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java @@ -2,9 +2,9 @@ * * $RCSfile: Bug98508_Test.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2003-05-22 08:39:21 $ + * last change: $Author: obo $ $Date: 2004-06-04 03:04:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,12 +59,11 @@ * ************************************************************************/ -package com.sun.star.lib.uno.bridges.java_remote; +package com.sun.star.lib.uno.bridges.javaremote; import com.sun.star.bridge.XBridge; import com.sun.star.bridge.XInstanceProvider; import com.sun.star.lang.DisposedException; -import com.sun.star.lang.XServiceName; import com.sun.star.lib.TestBed; import com.sun.star.uno.UnoRuntime; import complexlib.ComplexTestCase; @@ -79,6 +78,10 @@ import complexlib.ComplexTestCase; * the bridge to be disposed, it rather caused both client and server to * hang.</p> * + * <p>Since null instead of a <code>String</code> no longer causes an exception + * in the bridge, this test has been redesigned to send a value of a wrong + * instantiated polymorphic struct type instead.</p> + * * <p>This test has to detect whether the spawned client process indeed hangs, * which can not be done reliably. As an approximation, it waits for 10 sec and * considers the process hanging if it has not completed by then.</p> @@ -103,11 +106,11 @@ public final class Bug98508_Test extends ComplexTestCase { } protected boolean run(XBridge bridge) throws Throwable { - XServiceName serviceName - = (XServiceName) UnoRuntime.queryInterface( - XServiceName.class, bridge.getInstance("ServiceName")); + Test98508Interface ifc + = (Test98508Interface) UnoRuntime.queryInterface( + Test98508Interface.class, bridge.getInstance("")); try { - serviceName.getServiceName(); + ifc.get(); } catch (DisposedException e) { return true; } @@ -121,10 +124,10 @@ public final class Bug98508_Test extends ComplexTestCase { } public Object getInstance(String instanceName) { - return new XServiceName() { - public String getServiceName() { + return new Test98508Interface() { + public Test98508Struct get() { testBed.serverDone(true); - return null; + return new Test98508Struct(Boolean.FALSE); } }; } |