diff options
Diffstat (limited to 'cpp/src/tests/QueueOptionsTest.cpp')
-rw-r--r-- | cpp/src/tests/QueueOptionsTest.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/src/tests/QueueOptionsTest.cpp b/cpp/src/tests/QueueOptionsTest.cpp index 7d9bfa68fb..bac369bfec 100644 --- a/cpp/src/tests/QueueOptionsTest.cpp +++ b/cpp/src/tests/QueueOptionsTest.cpp @@ -75,5 +75,24 @@ QPID_AUTO_TEST_CASE(testFlags) } +QPID_AUTO_TEST_CASE(testSetOrdering) +{ + //ensure setOrdering(FIFO) works even if not preceded by a call to + //setOrdering(LVQ) + QueueOptions ft; + ft.setOrdering(FIFO); + BOOST_CHECK(!ft.isSet(QueueOptions::strLastValueQueue)); + +} + +QPID_AUTO_TEST_CASE(testClearPersistLastNode) +{ + //ensure clear works even if not preceded by the setting on the + //option + QueueOptions ft; + ft.clearPersistLastNode(); + BOOST_CHECK(!ft.isSet(QueueOptions::strPersistLastNode)); +} + QPID_AUTO_TEST_SUITE_END() |