summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2011-09-02 01:51:50 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2011-09-02 01:51:50 +0000
commit03eaea4ddc71ad239a43ab5157d8666affa5a0e5 (patch)
treefde7177d204ac108001299aab18e28ca8b8ac4f7 /java
parentf20a5c64a954f14cd68e00a74cec3eedae0ac881 (diff)
downloadqpid-python-03eaea4ddc71ad239a43ab5157d8666affa5a0e5.tar.gz
QPID-3373 I forgot to ensure the correct port is used in the connection
URL. Changed the test to use the patch proposed by Alex Rudyy. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1164327 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionFactoryTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionFactoryTest.java b/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionFactoryTest.java
index 0b9ef8c04a..545081fb43 100644
--- a/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionFactoryTest.java
+++ b/java/systests/src/main/java/org/apache/qpid/test/unit/client/connection/ConnectionFactoryTest.java
@@ -13,7 +13,9 @@ public class ConnectionFactoryTest extends QpidBrokerTestCase
*/
public void testCreateConnectionWithUsernamePassword() throws Exception
{
- String URL = "amqp://guest:guest@clientID/test?brokerlist='tcp://localhost:5672'";
+
+ String brokerUrl = getBroker().toString();
+ String URL = "amqp://guest:guest@clientID/test?brokerlist='" + brokerUrl + "'";
AMQConnectionFactory factory = new AMQConnectionFactory(URL);
AMQConnection con = (AMQConnection)factory.createConnection();