diff options
author | Gordon Sim <gsim@apache.org> | 2008-04-20 12:10:37 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-04-20 12:10:37 +0000 |
commit | 4780580874e8d6a3e3590fa5fdf8a088310b20ae (patch) | |
tree | a73e247b9821c2429a8e015ddff9cbb5d17a88e8 /qpid/cpp/src/tests/ClientSessionTest.cpp | |
parent | e29bb6406ad8d0c0d9d58b7d1d09798829687602 (diff) | |
download | qpid-python-4780580874e8d6a3e3590fa5fdf8a088310b20ae.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@649915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ClientSessionTest.cpp')
-rw-r--r-- | qpid/cpp/src/tests/ClientSessionTest.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/ClientSessionTest.cpp b/qpid/cpp/src/tests/ClientSessionTest.cpp index 44d5ed4650..9b6e0dce21 100644 --- a/qpid/cpp/src/tests/ClientSessionTest.cpp +++ b/qpid/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 * |