diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-12-01 13:56:51 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-12-01 13:56:51 +0000 |
commit | e5178497b5c1ab7294acbe6c361624706e0dc064 (patch) | |
tree | e17b7cb61e0765455160aaf1ac43b803d409cf4c /jurt/test/com | |
parent | 9daf39d9bb172d2be1e7c4839749c20301bd20b8 (diff) |
INTEGRATION: CWS sb23 (1.2.36); FILE MERGED
2006/08/18 16:31:23 sb 1.2.36.2: RESYNC: (1.2-1.3); FILE MERGED
2005/03/08 14:29:17 sb 1.2.36.1: #i35277# More cleanup.
Diffstat (limited to 'jurt/test/com')
-rw-r--r-- | jurt/test/com/sun/star/uno/UnoRuntime_EnvironmentTest.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/jurt/test/com/sun/star/uno/UnoRuntime_EnvironmentTest.java b/jurt/test/com/sun/star/uno/UnoRuntime_EnvironmentTest.java index 80d0c5e6899a..6428721220cb 100644 --- a/jurt/test/com/sun/star/uno/UnoRuntime_EnvironmentTest.java +++ b/jurt/test/com/sun/star/uno/UnoRuntime_EnvironmentTest.java @@ -4,9 +4,9 @@ * * $RCSfile: UnoRuntime_EnvironmentTest.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-09-07 19:17:54 $ + * last change: $Author: rt $ $Date: 2006-12-01 14:56:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -75,27 +75,30 @@ public final class UnoRuntime_EnvironmentTest extends ComplexTestCase { } public void test_getBridge() throws java.lang.Exception { - PipedConnection oneSide = new PipedConnection(new Object[0]); - PipedConnection otherSide = new PipedConnection(new Object[]{oneSide}); + PipedConnection conn = new PipedConnection(new Object[0]); + new PipedConnection(new Object[] { conn }); // get a bridge IBridge iBridge = UnoRuntime.getBridgeByName( "java", null, "remote", "testname", - new Object[] { "urp", oneSide, null }); + new Object[] { "urp", conn, null }); // reget the bridge, it must be the same as above IBridge iBridge_tmp = UnoRuntime.getBridgeByName( "java", null, "remote", "testname", - new Object[] { "urp", oneSide, null }); + new Object[] { "urp", conn, null }); assure("", UnoRuntime.areSame(iBridge_tmp, iBridge)); // dispose the bridge, this removes the entry from the runtime iBridge.dispose(); + conn = new PipedConnection(new Object[0]); + new PipedConnection(new Object[] { conn }); + // reget the bridge, it must be a different one iBridge_tmp = UnoRuntime.getBridgeByName( "java", null, "remote", "testname", - new Object[]{ "urp", oneSide, null }); + new Object[]{ "urp", conn, null }); assure("", !UnoRuntime.areSame(iBridge_tmp, iBridge)); } } |