diff options
author | Mark Spruiell <mes@zeroc.com> | 2011-05-02 19:33:59 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2011-05-02 19:33:59 -0700 |
commit | 29fa72f67e9eceebc765d7cbc997a4626797d9b5 (patch) | |
tree | 239719dc3ff622d4b3225aa2414bd90091b60357 /java/test/Ice/dispatcher/TestI.java | |
parent | updates for PHP 5.3.6 (diff) | |
download | ice-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.java | 9 |
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; } |