summaryrefslogtreecommitdiff
path: root/jurt/test/com
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-12-01 13:55:19 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-12-01 13:55:19 +0000
commitee46559eeb8b4478351c04dbcd7226b3a0693b2d (patch)
tree2c88c2ec68345a27e144286619571e178b0ba55e /jurt/test/com
parent86e28421c8ea6ab1ab02fccb84961b1d73835165 (diff)
INTEGRATION: CWS sb23 (1.10.26); FILE MERGED
2006/08/18 16:27:42 sb 1.10.26.4: RESYNC: (1.10-1.11); FILE MERGED 2005/03/14 14:30:43 sb 1.10.26.3: #i35277# Further cleanup. 2005/02/18 09:21:52 sb 1.10.26.2: #i35277# More cleanup; functionality moved from java_remote_bridge to urp, so that urp can autonomously handle protocol property requests. 2004/10/11 10:21:14 sb 1.10.26.1: #i35277# Cleand up (as a prerequisite to doing any substantial changes).
Diffstat (limited to 'jurt/test/com')
-rw-r--r--jurt/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test.java17
1 files changed, 4 insertions, 13 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test.java b/jurt/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test.java
index 5da4fd712..20e1678d7 100644
--- a/jurt/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test.java
@@ -4,9 +4,9 @@
*
* $RCSfile: java_remote_bridge_Test.java,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 19:10:49 $
+ * last change: $Author: rt $ $Date: 2006-12-01 14:55:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -40,7 +40,6 @@ import com.sun.star.comp.connections.PipedConnection;
import com.sun.star.connection.XConnection;
import com.sun.star.container.NoSuchElementException;
import com.sun.star.lib.uno.environments.java.java_environment;
-import com.sun.star.lib.uno.environments.remote.Protocol;
import com.sun.star.lib.uno.typeinfo.MethodTypeInfo;
import com.sun.star.lib.uno.typeinfo.TypeInfo;
import com.sun.star.uno.IQueryInterface;
@@ -105,7 +104,7 @@ public final class java_remote_bridge_Test extends ComplexTestCase {
failed("no instance provider");
} catch (com.sun.star.uno.RuntimeException e) {
assure("no instance provider",
- e.getMessage().indexOf("no instance provider set") != -1);
+ e.getMessage().startsWith("unknown OID "));
}
}
@@ -180,15 +179,7 @@ public final class java_remote_bridge_Test extends ComplexTestCase {
assure("proxy count", ProxyFactory.getDebugCount() == 0);
System.out.println("waiting for pending messages to be done");
- while (((Protocol) bridgeB.getProtocol()).getRequestsSendCount()
- > ((Protocol) bridgeA.getProtocol()).getRequestsReceivedCount())
- {
- System.out.println(
- "pending: "
- + ((Protocol) bridgeB.getProtocol()).getRequestsSendCount()
- + ", "
- + (((Protocol) bridgeA.getProtocol()).
- getRequestsReceivedCount()));
+ while (bridgeA.getLifeCount() != 0 || bridgeB.getLifeCount() != 0) {
Thread.sleep(100);
}