summaryrefslogtreecommitdiff
path: root/cpp/src/tests/ClientSessionTest.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-20 12:10:37 +0000
committerGordon Sim <gsim@apache.org>2008-04-20 12:10:37 +0000
commit0637677cf6653256b67c82dcb74f35133601220c (patch)
tree8507bb8373e8b6dfd8c9b96fcb4b262fd4d61501 /cpp/src/tests/ClientSessionTest.cpp
parent48dab065ef526f68a5a7d4c4ba22c5b8b2e2e026 (diff)
downloadqpid-python-0637677cf6653256b67c82dcb74f35133601220c.tar.gz
QPID-920: converted c++ client to use final 0-10 protocol
* connection handler converted to using invoker & proxy and updated to final method defs * SessionCore & ExecutionHandler replace by SessionImpl * simplified handling of completion & results, removed handling of responses git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@649915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ClientSessionTest.cpp')
-rw-r--r--cpp/src/tests/ClientSessionTest.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/tests/ClientSessionTest.cpp b/cpp/src/tests/ClientSessionTest.cpp
index 44d5ed4650..9b6e0dce21 100644
--- a/cpp/src/tests/ClientSessionTest.cpp
+++ b/cpp/src/tests/ClientSessionTest.cpp
@@ -118,13 +118,13 @@ QPID_AUTO_TEST_CASE(testTransfer)
ClientSessionFixture fix;
fix.session=fix.connection.newSession(ASYNC);
fix.declareSubscribe();
- fix.session.messageTransfer(content=TransferContent("my-message", "my-queue"));
+ fix.session.messageTransfer(acceptMode=1, content=TransferContent("my-message", "my-queue"));
//get & test the message:
FrameSet::shared_ptr msg = fix.session.get();
BOOST_CHECK(msg->isA<MessageTransferBody>());
BOOST_CHECK_EQUAL(string("my-message"), msg->getContent());
//confirm receipt:
- fix.session.getExecution().completed(msg->getId(), true, true);
+ fix.session.getExecution().markCompleted(msg->getId(), true, true);
}
QPID_AUTO_TEST_CASE(testDispatcher)
@@ -161,6 +161,8 @@ BOOST_FIXTURE_TEST_CASE(testDispatcherThread, ClientSessionFixture)
}
*/
+/*
+ * GS (18-APR-2008): disabled resume tests until resumption for 0-10 final spec is implemented
QPID_AUTO_TEST_CASE(_FIXTURE)
{
ClientSessionFixture fix;
@@ -195,7 +197,7 @@ QPID_AUTO_TEST_CASE(testSuspendResume)
FrameSet::shared_ptr msg = fix.session.get();
BOOST_CHECK_EQUAL(string("my-message"), msg->getContent());
}
-
+*/
/**
* Currently broken due to a deadlock in SessionCore
*