summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/TwowaysAMI.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-08-27 07:57:34 +0000
committerMichi Henning <michi@zeroc.com>2003-08-27 07:57:34 +0000
commit8b28f1a29ce255d53f9552aecc13da1d73c2700c (patch)
treebce99cd551341aed505a64a5f6ee882a25e16de5 /cpp/test/Ice/operations/TwowaysAMI.cpp
parentMoved "all" project back to the front of the file so it becomes the default (diff)
downloadice-8b28f1a29ce255d53f9552aecc13da1d73c2700c.tar.bz2
ice-8b28f1a29ce255d53f9552aecc13da1d73c2700c.tar.xz
ice-8b28f1a29ce255d53f9552aecc13da1d73c2700c.zip
Added test for ice_getContext().
Diffstat (limited to 'cpp/test/Ice/operations/TwowaysAMI.cpp')
-rw-r--r--cpp/test/Ice/operations/TwowaysAMI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/TwowaysAMI.cpp b/cpp/test/Ice/operations/TwowaysAMI.cpp
index deb351d5d6e..09283bcbfa1 100644
--- a/cpp/test/Ice/operations/TwowaysAMI.cpp
+++ b/cpp/test/Ice/operations/TwowaysAMI.cpp
@@ -1096,16 +1096,19 @@ twowaysAMI(const Test::MyClassPrx& p)
ctx["two"] = "TWO";
ctx["three"] = "THREE";
{
+ test(p->ice_getContext().empty());
AMI_MyClass_opContextNotEqualIPtr cb = new AMI_MyClass_opContextNotEqualI(ctx);
p->opContext_async(cb);
test(cb->check());
}
{
+ test(p->ice_getContext().empty());
AMI_MyClass_opContextEqualIPtr cb = new AMI_MyClass_opContextEqualI(ctx);
p->opContext_async(cb, ctx);
test(cb->check());
}
Test::MyClassPrx p2 = Test::MyClassPrx::checkedCast(p->ice_newContext(ctx));
+ test(p2->ice_getContext() == ctx);
{
AMI_MyClass_opContextEqualIPtr cb = new AMI_MyClass_opContextEqualI(ctx);
p2->opContext_async(cb);