diff options
author | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2008-10-13 21:24:40 +0000 |
commit | 735ec9528d15ff5bd496d1229cc1cba510d9005d (patch) | |
tree | f9c99860706e5ba49b49f6017ed136755d979d59 /qpid/cpp/src/tests/QueueOptionsTest.cpp | |
parent | 4d0136f757776a1860c0d08e9674cfd18529b586 (diff) | |
download | qpid-python-735ec9528d15ff5bd496d1229cc1cba510d9005d.tar.gz |
Field Table API: changed the getInt() & getString() operations
which are inconsistent with all the other getXXX() functions to
getAsString()/getAsInt() to better indicate their real function.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@704255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/QueueOptionsTest.cpp')
-rw-r--r-- | qpid/cpp/src/tests/QueueOptionsTest.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/qpid/cpp/src/tests/QueueOptionsTest.cpp b/qpid/cpp/src/tests/QueueOptionsTest.cpp index 5c1dda697b..a662458b36 100644 --- a/qpid/cpp/src/tests/QueueOptionsTest.cpp +++ b/qpid/cpp/src/tests/QueueOptionsTest.cpp @@ -36,20 +36,20 @@ QPID_AUTO_TEST_CASE(testSizePolicy) ft.setSizePolicy(REJECT,1,2); - BOOST_CHECK(QueueOptions::strREJECT == ft.getString(QueueOptions::strTypeKey)); - BOOST_CHECK(1 == ft.getInt(QueueOptions::strMaxSizeKey)); - BOOST_CHECK(2 == ft.getInt(QueueOptions::strMaxCountKey)); + 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); - BOOST_CHECK(QueueOptions::strFLOW_TO_DISK == ft.getString(QueueOptions::strTypeKey)); - BOOST_CHECK(1 == ft.getInt(QueueOptions::strMaxSizeKey)); - BOOST_CHECK(2 == ft.getInt(QueueOptions::strMaxCountKey)); + 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); - BOOST_CHECK(QueueOptions::strRING == ft.getString(QueueOptions::strTypeKey)); + BOOST_CHECK(QueueOptions::strRING == ft.getAsString(QueueOptions::strTypeKey)); ft.setSizePolicy(RING_STRICT,1,0); - BOOST_CHECK(QueueOptions::strRING_STRICT == ft.getString(QueueOptions::strTypeKey)); + BOOST_CHECK(QueueOptions::strRING_STRICT == ft.getAsString(QueueOptions::strTypeKey)); ft.clearSizePolicy(); BOOST_CHECK(!ft.isSet(QueueOptions::strTypeKey)); @@ -65,9 +65,9 @@ QPID_AUTO_TEST_CASE(testFlags) ft.setPersistLastNode(); ft.setOrdering(LVQ); - BOOST_CHECK(1 == ft.getInt(QueueOptions::strOptimisticConsume)); - BOOST_CHECK(1 == ft.getInt(QueueOptions::strPersistLastNode)); - BOOST_CHECK(1 == ft.getInt(QueueOptions::strLastValueQueue)); + 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(); |