summaryrefslogtreecommitdiff
path: root/qpid/java/systests/src
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2014-01-13 11:43:52 +0000
committerKeith Wall <kwall@apache.org>2014-01-13 11:43:52 +0000
commite24fe7cc76a6ac23417d7d8fb83829ca69e156dc (patch)
tree68e69c13c3fa67f7d576fd46cc3c37f0b85d348b /qpid/java/systests/src
parent992bc4eb0986ecbda44d662b53e28ab9ac2b066d (diff)
downloadqpid-python-e24fe7cc76a6ac23417d7d8fb83829ca69e156dc.tar.gz
QPID-5472: [Java Broker] Connection model object attribute PORT should return the name of the Port
* Added REST system test for the above * Also addressed review comments from Andrew MacBean (namely, HttpManagement#stop should chain the underlying exception). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1557683 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests/src')
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/Asserts.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/Asserts.java b/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/Asserts.java
index ad328eaede..b65ddbb2d0 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/Asserts.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/systest/rest/Asserts.java
@@ -41,6 +41,7 @@ import org.apache.qpid.server.model.Protocol;
import org.apache.qpid.server.model.Queue;
import org.apache.qpid.server.model.State;
import org.apache.qpid.server.model.VirtualHost;
+import org.apache.qpid.test.utils.TestBrokerConfiguration;
public class Asserts
{
@@ -163,6 +164,8 @@ public class Asserts
Connection.INCOMING, Connection.REMOTE_PROCESS_NAME, Connection.REMOTE_PROCESS_PID,
Connection.LOCAL_ADDRESS, Connection.PROPERTIES);
+ assertEquals("Unexpected value for connection attribute " + Connection.PORT,
+ TestBrokerConfiguration.ENTRY_NAME_AMQP_PORT, connectionData.get(Connection.PORT));
assertEquals("Unexpected value of connection attribute " + Connection.SESSION_COUNT_LIMIT,
(int) connection.getMaximumChannelCount(), connectionData.get(Connection.SESSION_COUNT_LIMIT));
assertEquals("Unexpected value of connection attribute " + Connection.CLIENT_ID, "clientid",