diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-11-07 19:37:39 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-11-07 19:37:39 +0000 |
| commit | faed0e523764b8a8e5b8a761373511a88515f529 (patch) | |
| tree | 1f3cd82c7959c7acdefdfbe89803e64e0fab71d1 /cpp/src/tests/XmlClientSessionTest.cpp | |
| parent | 9bf6d2d65d7f85fbe0a51e5c912395e4cd720db3 (diff) | |
| download | qpid-python-faed0e523764b8a8e5b8a761373511a88515f529.tar.gz | |
QPID-5304: Alow this change to work with earlier versions of boost
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1539777 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/XmlClientSessionTest.cpp')
| -rw-r--r-- | cpp/src/tests/XmlClientSessionTest.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/cpp/src/tests/XmlClientSessionTest.cpp b/cpp/src/tests/XmlClientSessionTest.cpp index 49825e011e..bfa6ed096b 100644 --- a/cpp/src/tests/XmlClientSessionTest.cpp +++ b/cpp/src/tests/XmlClientSessionTest.cpp @@ -42,6 +42,8 @@ namespace qpid { namespace tests { +QPID_AUTO_TEST_SUITE(XmlClientSessionTest) + struct XmlFixture { XmlFixture() { qpid::sys::Shlib shlib(getLibPath("XML_LIB")); @@ -49,10 +51,7 @@ struct XmlFixture { ~XmlFixture() {} }; -BOOST_FIXTURE_TEST_SUITE(XmlClientSessionTest, XmlFixture) - using namespace qpid::client; - using namespace qpid::client::arg; using namespace qpid::framing; using namespace qpid; @@ -109,7 +108,7 @@ struct ClientSessionFixture : public SessionFixture // ########### START HERE #################################### -QPID_AUTO_TEST_CASE(testXmlBinding) { +QPID_FIXTURE_TEST_CASE(testXmlBinding, XmlFixture) { ClientSessionFixture f; SubscriptionManager subscriptions(f.session); @@ -140,7 +139,7 @@ QPID_AUTO_TEST_CASE(testXmlBinding) { /** * Ensure that multiple queues can be bound using the same routing key */ -QPID_AUTO_TEST_CASE(testXMLBindMultipleQueues) { +QPID_FIXTURE_TEST_CASE(testXMLBindMultipleQueues, XmlFixture) { ClientSessionFixture f; @@ -171,7 +170,7 @@ QPID_AUTO_TEST_CASE(testXMLBindMultipleQueues) { //### Test: Bad XML does not kill the server - and does not even // raise an exception, the content is not required to be XML. -QPID_AUTO_TEST_CASE(testXMLSendBadXML) { +QPID_FIXTURE_TEST_CASE(testXMLSendBadXML, XmlFixture) { ClientSessionFixture f; f.session.exchangeDeclare(arg::exchange="xml", arg::type="xml"); @@ -197,7 +196,7 @@ lour", arg::arguments=red); //### Test: Bad XQuery does not kill the server, but does raise an exception -QPID_AUTO_TEST_CASE(testXMLBadXQuery) { +QPID_FIXTURE_TEST_CASE(testXMLBadXQuery, XmlFixture) { ClientSessionFixture f; f.session.exchangeDeclare(arg::exchange="xml", arg::type="xml"); @@ -221,7 +220,7 @@ olour", arg::arguments=blue); //### Test: double, string, and integer field values can all be bound to queries -QPID_AUTO_TEST_CASE(testXmlBindingUntyped) { +QPID_FIXTURE_TEST_CASE(testXmlBindingUntyped, XmlFixture) { ClientSessionFixture f; SubscriptionManager subscriptions(f.session); @@ -257,7 +256,7 @@ QPID_AUTO_TEST_CASE(testXmlBindingUntyped) { //### Test: double, string, and integer field values can all be bound to queries -QPID_AUTO_TEST_CASE(testXmlBindingTyped) { +QPID_FIXTURE_TEST_CASE(testXmlBindingTyped, XmlFixture) { ClientSessionFixture f; SubscriptionManager subscriptions(f.session); |
