From e24fe7cc76a6ac23417d7d8fb83829ca69e156dc Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Mon, 13 Jan 2014 11:43:52 +0000 Subject: 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 --- .../systests/src/main/java/org/apache/qpid/systest/rest/Asserts.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qpid/java/systests/src') 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", -- cgit v1.2.1