summaryrefslogtreecommitdiff
path: root/cpp/src/tests/cluster_test.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-31 16:56:04 +0000
committerAlan Conway <aconway@apache.org>2008-10-31 16:56:04 +0000
commit4cbbb2a935e2eda7aa8d79fd6d5764cbbfb2010a (patch)
tree0033cd459d4418c44f28953bb211b58135c88eae /cpp/src/tests/cluster_test.cpp
parent79323867dae1ad7b0d00e4055e506749236d9bf1 (diff)
downloadqpid-python-4cbbb2a935e2eda7aa8d79fd6d5764cbbfb2010a.tar.gz
Cluster returns connection exception for un-supported AMQP features.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709474 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/cluster_test.cpp')
-rw-r--r--cpp/src/tests/cluster_test.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/src/tests/cluster_test.cpp b/cpp/src/tests/cluster_test.cpp
index 63bd31ea1b..5f18d0ff90 100644
--- a/cpp/src/tests/cluster_test.cpp
+++ b/cpp/src/tests/cluster_test.cpp
@@ -220,6 +220,20 @@ class Sender {
uint16_t channel;
};
+QPID_AUTO_TEST_CASE(testUnsupported) {
+ ScopedSuppressLogging sl;
+ ClusterFixture cluster(1);
+ Client c0(cluster[0], "c0");
+ BOOST_CHECK_THROW(c0.session.txSelect(), Exception);
+ BOOST_CHECK(!c0.connection.isOpen());
+ Client c1(cluster[0], "c1");
+ BOOST_CHECK_THROW(c1.session.dtxCommit(), Exception);
+ Client c2(cluster[0], "c2");
+ Message m;
+ m.getDeliveryProperties().setTtl(1);
+ BOOST_CHECK_THROW(c2.session.messageTransfer(arg::content=m), Exception);
+}
+
QPID_AUTO_TEST_CASE(testUnacked) {
// Verify replication of unacknowledged messages.
ClusterFixture cluster(1);