diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-05-11 12:33:14 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-05-11 12:33:14 -0230 |
commit | 1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5 (patch) | |
tree | d95f06135aa5844e5d914e8bb37b96d4b2401dca /java/test/Ice/operations/Twoways.java | |
parent | Bug 3885 - do not use localhost as node name in demos (diff) | |
download | ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.tar.bz2 ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.tar.xz ice-1fb6c38f2f6e33e3ef804aafda324c1bcb0ac7b5.zip |
Bug 3878 - remove some deprecated features
Diffstat (limited to 'java/test/Ice/operations/Twoways.java')
-rw-r--r-- | java/test/Ice/operations/Twoways.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/java/test/Ice/operations/Twoways.java b/java/test/Ice/operations/Twoways.java index 712086d32e5..20c99f1057a 100644 --- a/java/test/Ice/operations/Twoways.java +++ b/java/test/Ice/operations/Twoways.java @@ -697,50 +697,6 @@ class Twoways r = p2.opContext(ctx); test(r.equals(ctx)); } - { - // - // Test that default context is obtained correctly from communicator. - // -/* DEPRECATED - java.util.HashMap dflt = new java.util.HashMap(); - dflt.put("a", "b"); - communicator.setDefaultContext(dflt); - test(!p.opContext().equals(dflt)); - - MyClassPrx p2 = MyClassPrxHelper.uncheckedCast(p.ice_context(new java.util.HashMap())); - test(p2.opContext().isEmpty()); - - p2 = MyClassPrxHelper.uncheckedCast(p.ice_defaultContext()); - test(p2.opContext().equals(dflt)); - - communicator.setDefaultContext(new java.util.HashMap()); - test(!p2.opContext().isEmpty()); - - communicator.setDefaultContext(dflt); - MyClassPrx c = MyClassPrxHelper.checkedCast( - communicator.stringToProxy("test:default -p 12010")); - test(c.opContext().equals(dflt)); - - dflt.put("a", "c"); - MyClassPrx c2 = MyClassPrxHelper.uncheckedCast(c.ice_context(dflt)); - test(c2.opContext().get("a").equals("c")); - - dflt.clear(); - MyClassPrx c3 = MyClassPrxHelper.uncheckedCast(c2.ice_context(dflt)); - test(c3.opContext().get("a") == null); - - MyClassPrx c4 = MyClassPrxHelper.uncheckedCast(c2.ice_defaultContext()); - test(c4.opContext().get("a").equals("b")); - - dflt.put("a", "d"); - communicator.setDefaultContext(dflt); - - MyClassPrx c5 = MyClassPrxHelper.uncheckedCast(c2.ice_defaultContext()); - test(c5.opContext().get("a").equals("d")); - - communicator.setDefaultContext(new java.util.HashMap()); -*/ - } } { // |