From 89aa2dcbe70954e8c83993cee306a910beae8844 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Wed, 6 Mar 2013 21:04:51 +0000 Subject: QPID-3396 Changed the test cases to relect that username and password is optional. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453559 13f79535-47bb-0310-9956-ffa450edef68 --- .../qpid/test/unit/client/connectionurl/ConnectionURLTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'qpid/java/client/src/test') diff --git a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connectionurl/ConnectionURLTest.java b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connectionurl/ConnectionURLTest.java index 8c193622e3..7c461fa13f 100644 --- a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connectionurl/ConnectionURLTest.java +++ b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/connectionurl/ConnectionURLTest.java @@ -384,11 +384,10 @@ public class ConnectionURLTest extends TestCase try { new AMQConnectionURL(url); - fail("URL Should not parse"); } catch (URLSyntaxException urise) { - assertTrue(urise.getMessage().startsWith("User information not found on url")); + fail("User information is optional in url"); } } @@ -400,11 +399,10 @@ public class ConnectionURLTest extends TestCase try { new AMQConnectionURL(url); - fail("URL Should not parse"); } catch (URLSyntaxException urise) { - assertTrue(urise.getMessage().startsWith("User information not found on url")); + fail("User information is optional in url"); } } -- cgit v1.2.1