summaryrefslogtreecommitdiff
path: root/java/test/Ice/dispatcher/TestI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-07-10 17:17:55 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-07-10 17:17:55 -0230
commit9326917abfa8ebd9815e192db2dd57cd8e85179d (patch)
tree26045ee4f12e9eab55cbeaefb6a3855ac16d6f50 /java/test/Ice/dispatcher/TestI.java
parentPartial fix for ICE-5548: better C++11 detection (diff)
downloadice-9326917abfa8ebd9815e192db2dd57cd8e85179d.tar.bz2
ice-9326917abfa8ebd9815e192db2dd57cd8e85179d.tar.xz
ice-9326917abfa8ebd9815e192db2dd57cd8e85179d.zip
ICE-5573 - .NET TimeoutException ignores Dispatcher
- Added test for C++, C# & Java to the dispatcher test to ensure that the invocation timeout is throwin in the correct thread. - Pass the connection to the dispatcher invocation in more cases.
Diffstat (limited to 'java/test/Ice/dispatcher/TestI.java')
-rw-r--r--java/test/Ice/dispatcher/TestI.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/java/test/Ice/dispatcher/TestI.java b/java/test/Ice/dispatcher/TestI.java
index 9b2681c1ca7..a3e0e717e88 100644
--- a/java/test/Ice/dispatcher/TestI.java
+++ b/java/test/Ice/dispatcher/TestI.java
@@ -34,6 +34,18 @@ public class TestI extends _TestIntfDisp
}
public void
+ sleep(int to, Ice.Current current)
+ {
+ try
+ {
+ Thread.currentThread().sleep(to);
+ }
+ catch(InterruptedException ex)
+ {
+ }
+ }
+
+ public void
opWithPayload(byte[] seq, Ice.Current current)
{
test(_dispatcher.isDispatcherThread());