diff options
author | Gordon Sim <gsim@apache.org> | 2009-05-11 12:21:40 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-05-11 12:21:40 +0000 |
commit | ce4375e5a161d38945ee4e863aad6b772e0e9251 (patch) | |
tree | 3123cb73340fe8f8205db2886c382db25bd0426c /cpp/src/tests/ClientSessionTest.cpp | |
parent | 1a826fd803a9ce99f6809cd868fcba72c6a50187 (diff) | |
download | qpid-python-ce4375e5a161d38945ee4e863aad6b772e0e9251.tar.gz |
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
Diffstat (limited to 'cpp/src/tests/ClientSessionTest.cpp')
-rw-r--r-- | cpp/src/tests/ClientSessionTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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() |