diff options
author | Gordon Sim <gsim@apache.org> | 2010-03-29 19:21:26 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-03-29 19:21:26 +0000 |
commit | d09dd6cf7e4b37b2945ea97c823636febed0bb39 (patch) | |
tree | 9a5bfaa339d7576594edbf90e314e19f0807b18c /cpp/src/tests/MessagingSessionTests.cpp | |
parent | adfea171e68298b9b0ced9fe54c2232b963e077e (diff) | |
download | qpid-python-d09dd6cf7e4b37b2945ea97c823636febed0bb39.tar.gz |
QPID-664: renamed headers as properties (to match python); added priority
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MessagingSessionTests.cpp')
-rw-r--r-- | cpp/src/tests/MessagingSessionTests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/MessagingSessionTests.cpp b/cpp/src/tests/MessagingSessionTests.cpp index c4659493ce..d1f7441216 100644 --- a/cpp/src/tests/MessagingSessionTests.cpp +++ b/cpp/src/tests/MessagingSessionTests.cpp @@ -241,7 +241,7 @@ QPID_AUTO_TEST_CASE(testSendReceiveHeaders) Sender sender = fix.session.createSender(fix.queue); Message out("test-message"); for (uint i = 0; i < 10; ++i) { - out.getHeaders()["a"] = i; + out.getProperties()["a"] = i; sender.send(out); } Receiver receiver = fix.session.createReceiver(fix.queue); @@ -249,7 +249,7 @@ QPID_AUTO_TEST_CASE(testSendReceiveHeaders) for (uint i = 0; i < 10; ++i) { BOOST_CHECK(receiver.fetch(in, Duration::SECOND * 5)); BOOST_CHECK_EQUAL(in.getContent(), out.getContent()); - BOOST_CHECK_EQUAL(in.getHeaders()["a"].asUint32(), i); + BOOST_CHECK_EQUAL(in.getProperties()["a"].asUint32(), i); fix.session.acknowledge(); } } |