qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject svn commit: r1463216 - /qpid/branches/0.22/qpid/java/client/src/test/java/org/apache/qpid/client/AMQDestinationTest.java
Date Mon, 01 Apr 2013 17:34:32 GMT
Author: rajith
Date: Mon Apr  1 17:34:32 2013
New Revision: 1463216

URL: http://svn.apache.org/r1463216
Log:
QPID-3769 Addressed concerns raised by Alex. Expanded the tests to
verify subject equality when determining equality for destinations.

(cherry picked from commit 8ff0a1b8baf61f6cab32e30cfcceabd3c289e99f)

Modified:
    qpid/branches/0.22/qpid/java/client/src/test/java/org/apache/qpid/client/AMQDestinationTest.java

Modified: qpid/branches/0.22/qpid/java/client/src/test/java/org/apache/qpid/client/AMQDestinationTest.java
URL: http://svn.apache.org/viewvc/qpid/branches/0.22/qpid/java/client/src/test/java/org/apache/qpid/client/AMQDestinationTest.java?rev=1463216&r1=1463215&r2=1463216&view=diff
==============================================================================
--- qpid/branches/0.22/qpid/java/client/src/test/java/org/apache/qpid/client/AMQDestinationTest.java
(original)
+++ qpid/branches/0.22/qpid/java/client/src/test/java/org/apache/qpid/client/AMQDestinationTest.java
Mon Apr  1 17:34:32 2013
@@ -27,10 +27,10 @@ public class AMQDestinationTest extends 
     public void testEqaulsAndHashCodeForAddressBasedDestinations() throws Exception
     {
         AMQDestination dest = new AMQQueue("ADDR:Foo; {node :{type:queue}}");
-        AMQDestination dest1 = new AMQQueue("ADDR:Foo; {node :{type:topic}}");
+        AMQDestination dest1 = new AMQTopic("ADDR:Foo; {node :{type:topic}}");
         AMQDestination dest2 = new AMQQueue(
                 "ADDR:Foo; {create:always,node :{type:queue}}");
-        String bUrl = "direct://amq.direct/test-route/Foo?routingkey='Foo'";
+        String bUrl = "BURL:direct://amq.direct/test-route/Foo?routingkey='Foo'";
         AMQDestination dest3 = new AMQQueue(bUrl);
 
         assertTrue(dest.equals(dest));
@@ -42,5 +42,9 @@ public class AMQDestinationTest extends 
         assertTrue(dest.hashCode() != dest1.hashCode());
         assertTrue(dest.hashCode() == dest2.hashCode());
         assertTrue(dest.hashCode() != dest3.hashCode());
+
+        AMQDestination dest4 = new AMQQueue("ADDR:Foo/Bar; {node :{type:queue}}");
+        AMQDestination dest5 = new AMQQueue("ADDR:Foo/Bar2; {node :{type:queue}}");
+        assertTrue(dest4.hashCode() != dest5.hashCode());
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message