activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1490466 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java
Date Thu, 06 Jun 2013 22:41:29 GMT
Author: tabish
Date: Thu Jun  6 22:41:28 2013
New Revision: 1490466

URL: http://svn.apache.org/r1490466
Log:
fix test to account for changes in how we carry along the textview of JMSMessageID

Modified:
    activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java

Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java?rev=1490466&r1=1490465&r2=1490466&view=diff
==============================================================================
--- activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java
(original)
+++ activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/command/ActiveMQMessageTest.java
Thu Jun  6 22:41:28 2013
@@ -70,7 +70,7 @@ public class ActiveMQMessageTest extends
     @Override
     protected void setUp() throws Exception {
         super.setUp();
-        this.jmsMessageID = "testid";
+        this.jmsMessageID = "ID:TEST-ID:0:0:0:1";
         this.jmsCorrelationID = "testcorrelationid";
         this.jmsDestination = new ActiveMQTopic("test.topic");
         this.jmsReplyTo = new ActiveMQTempTopic("test.replyto.topic:001");
@@ -103,7 +103,7 @@ public class ActiveMQMessageTest extends
     public void testHashCode() throws Exception {
         ActiveMQMessage msg = new ActiveMQMessage();
         msg.setJMSMessageID(this.jmsMessageID);
-        assertTrue(msg.hashCode() == jmsMessageID.hashCode());
+        assertTrue(msg.getJMSMessageID().hashCode() == jmsMessageID.hashCode());
     }
 
     public void testSetReadOnly() {



Mime
View raw message