diff options
Diffstat (limited to 'cpp/src/tests/SessionState.cpp')
-rw-r--r-- | cpp/src/tests/SessionState.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/tests/SessionState.cpp b/cpp/src/tests/SessionState.cpp index b8d0560c48..56d0055ed8 100644 --- a/cpp/src/tests/SessionState.cpp +++ b/cpp/src/tests/SessionState.cpp @@ -17,10 +17,12 @@ */ #include "qpid/framing/SessionState.h" +#include "qpid/Exception.h" #include <boost/bind.hpp> -#include <boost/test/auto_unit_test.hpp> -BOOST_AUTO_TEST_SUITE(SessionState); +#include "unit_test.h" + +QPID_AUTO_TEST_SUITE(SessionStateTestSuite) using namespace std; using namespace qpid::framing; @@ -119,7 +121,7 @@ BOOST_AUTO_TEST_CASE(testReplay) { try { session.receivedAck(6); BOOST_FAIL("expected exception"); - } catch(const qpid::Exception&) {} + } catch(const std::exception&) {} } @@ -141,4 +143,4 @@ BOOST_AUTO_TEST_CASE(testReceived) { BOOST_CHECK_EQUAL(5u, *s3.received(f)); } -BOOST_AUTO_TEST_SUITE_END(); +QPID_AUTO_TEST_SUITE_END() |