summaryrefslogtreecommitdiff
path: root/cpp/src/tests/QueueOptionsTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-11-17 17:03:43 +0000
committerAlan Conway <aconway@apache.org>2008-11-17 17:03:43 +0000
commit4aad013bdb4fcac090a31d20b333345865a32309 (patch)
treed95fa97a418ed096b33d093ca23a4be1dc6f86fb /cpp/src/tests/QueueOptionsTest.cpp
parent392cd6f2b17e51631dde930668d437356430ab82 (diff)
downloadqpid-python-4aad013bdb4fcac090a31d20b333345865a32309.tar.gz
Remove optimistic consume options. Better default message for SSL errors.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@718277 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/QueueOptionsTest.cpp')
-rw-r--r--cpp/src/tests/QueueOptionsTest.cpp28
1 files changed, 12 insertions, 16 deletions
diff --git a/cpp/src/tests/QueueOptionsTest.cpp b/cpp/src/tests/QueueOptionsTest.cpp
index a662458b36..7d9bfa68fb 100644
--- a/cpp/src/tests/QueueOptionsTest.cpp
+++ b/cpp/src/tests/QueueOptionsTest.cpp
@@ -34,48 +34,44 @@ QPID_AUTO_TEST_CASE(testSizePolicy)
{
QueueOptions ft;
- ft.setSizePolicy(REJECT,1,2);
+ ft.setSizePolicy(REJECT,1,2);
BOOST_CHECK(QueueOptions::strREJECT == ft.getAsString(QueueOptions::strTypeKey));
BOOST_CHECK(1 == ft.getAsInt(QueueOptions::strMaxSizeKey));
BOOST_CHECK(2 == ft.getAsInt(QueueOptions::strMaxCountKey));
- ft.setSizePolicy(FLOW_TO_DISK,0,2);
+ ft.setSizePolicy(FLOW_TO_DISK,0,2);
BOOST_CHECK(QueueOptions::strFLOW_TO_DISK == ft.getAsString(QueueOptions::strTypeKey));
BOOST_CHECK(1 == ft.getAsInt(QueueOptions::strMaxSizeKey));
BOOST_CHECK(2 == ft.getAsInt(QueueOptions::strMaxCountKey));
- ft.setSizePolicy(RING,1,0);
+ ft.setSizePolicy(RING,1,0);
BOOST_CHECK(QueueOptions::strRING == ft.getAsString(QueueOptions::strTypeKey));
- ft.setSizePolicy(RING_STRICT,1,0);
+ ft.setSizePolicy(RING_STRICT,1,0);
BOOST_CHECK(QueueOptions::strRING_STRICT == ft.getAsString(QueueOptions::strTypeKey));
- ft.clearSizePolicy();
- BOOST_CHECK(!ft.isSet(QueueOptions::strTypeKey));
- BOOST_CHECK(!ft.isSet(QueueOptions::strMaxSizeKey));
- BOOST_CHECK(!ft.isSet(QueueOptions::strMaxCountKey));
+ ft.clearSizePolicy();
+ BOOST_CHECK(!ft.isSet(QueueOptions::strTypeKey));
+ BOOST_CHECK(!ft.isSet(QueueOptions::strMaxSizeKey));
+ BOOST_CHECK(!ft.isSet(QueueOptions::strMaxCountKey));
}
QPID_AUTO_TEST_CASE(testFlags)
{
QueueOptions ft;
- ft.setOptimisticConsume();
- ft.setPersistLastNode();
+ ft.setPersistLastNode();
ft.setOrdering(LVQ);
- BOOST_CHECK(1 == ft.getAsInt(QueueOptions::strOptimisticConsume));
BOOST_CHECK(1 == ft.getAsInt(QueueOptions::strPersistLastNode));
BOOST_CHECK(1 == ft.getAsInt(QueueOptions::strLastValueQueue));
- ft.clearOptimisticConsume();
- ft.clearPersistLastNode();
+ ft.clearPersistLastNode();
ft.setOrdering(FIFO);
- BOOST_CHECK(!ft.isSet(QueueOptions::strOptimisticConsume));
- BOOST_CHECK(!ft.isSet(QueueOptions::strPersistLastNode));
- BOOST_CHECK(!ft.isSet(QueueOptions::strLastValueQueue));
+ BOOST_CHECK(!ft.isSet(QueueOptions::strPersistLastNode));
+ BOOST_CHECK(!ft.isSet(QueueOptions::strLastValueQueue));
}