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 | 76dc7ca3e92919d83932e66906425067652e76f5 (patch) | |
tree | 3ad2af5d89e4df8af3c3eea74226c3c73ce80c63 /cpp/src/tests/QueueOptionsTest.cpp | |
parent | 037882cebf617cd18b5aa372fc22f50e692df2c6 (diff) | |
download | qpid-python-76dc7ca3e92919d83932e66906425067652e76f5.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/qpid@704255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/QueueOptionsTest.cpp')
-rw-r--r-- | cpp/src/tests/QueueOptionsTest.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/src/tests/QueueOptionsTest.cpp b/cpp/src/tests/QueueOptionsTest.cpp index 5c1dda697b..a662458b36 100644 --- a/cpp/src/tests/QueueOptionsTest.cpp +++ b/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(); |