summaryrefslogtreecommitdiff
path: root/java/test/Ice/dispatcher/TestI.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2011-05-02 19:33:59 -0700
committerMark Spruiell <mes@zeroc.com>2011-05-02 19:33:59 -0700
commit29fa72f67e9eceebc765d7cbc997a4626797d9b5 (patch)
tree239719dc3ff622d4b3225aa2414bd90091b60357 /java/test/Ice/dispatcher/TestI.java
parentupdates for PHP 5.3.6 (diff)
downloadice-29fa72f67e9eceebc765d7cbc997a4626797d9b5.tar.bz2
ice-29fa72f67e9eceebc765d7cbc997a4626797d9b5.tar.xz
ice-29fa72f67e9eceebc765d7cbc997a4626797d9b5.zip
bug 5002 - fixing several Java tests for Android compatibility
Diffstat (limited to 'java/test/Ice/dispatcher/TestI.java')
-rw-r--r--java/test/Ice/dispatcher/TestI.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/test/Ice/dispatcher/TestI.java b/java/test/Ice/dispatcher/TestI.java
index dcda8254fd0..204ef6a4820 100644
--- a/java/test/Ice/dispatcher/TestI.java
+++ b/java/test/Ice/dispatcher/TestI.java
@@ -22,20 +22,21 @@ public class TestI extends _TestIntfDisp
}
}
- TestI()
+ TestI(Dispatcher dispatcher)
{
+ _dispatcher = dispatcher;
}
public void
op(Ice.Current current)
{
- test(Dispatcher.isDispatcherThread());
+ test(_dispatcher.isDispatcherThread());
}
public void
opWithPayload(byte[] seq, Ice.Current current)
{
- test(Dispatcher.isDispatcherThread());
+ test(_dispatcher.isDispatcherThread());
}
public void
@@ -43,4 +44,6 @@ public class TestI extends _TestIntfDisp
{
current.adapter.getCommunicator().shutdown();
}
+
+ private Dispatcher _dispatcher;
}