From 76dc7ca3e92919d83932e66906425067652e76f5 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Mon, 13 Oct 2008 21:24:40 +0000 Subject: 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 --- cpp/src/tests/QueueOptionsTest.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'cpp/src/tests/QueueOptionsTest.cpp') 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(); -- cgit v1.2.1