From ce4375e5a161d38945ee4e863aad6b772e0e9251 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 11 May 2009 12:21:40 +0000 Subject: Added method to test validity of session object. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@773535 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/ClientSessionTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp/src/tests/ClientSessionTest.cpp') diff --git a/cpp/src/tests/ClientSessionTest.cpp b/cpp/src/tests/ClientSessionTest.cpp index f732d61ce1..c82cb77e95 100644 --- a/cpp/src/tests/ClientSessionTest.cpp +++ b/cpp/src/tests/ClientSessionTest.cpp @@ -583,6 +583,13 @@ QPID_AUTO_TEST_CASE(testGetThenSubscribe) { } } +QPID_AUTO_TEST_CASE(testSessionIsValid) { + ClientSessionFixture fix; + BOOST_CHECK(fix.session.isValid()); + Session session; + BOOST_CHECK(!session.isValid()); +} + QPID_AUTO_TEST_SUITE_END() -- cgit v1.2.1