activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1187577 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
Date Fri, 21 Oct 2011 22:18:28 GMT
Author: tabish
Date: Fri Oct 21 22:18:28 2011
New Revision: 1187577

URL: http://svn.apache.org/viewvc?rev=1187577&view=rev
Log:
Fix assertion error messages so that indicate an actual error.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java?rev=1187577&r1=1187576&r2=1187577&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
Fri Oct 21 22:18:28 2011
@@ -17,7 +17,6 @@
 package org.apache.activemq.transport.failover;
 
 import junit.framework.Test;
-import org.apache.activemq.ActiveMQConnection;
 import org.apache.activemq.ActiveMQConnectionFactory;
 import org.apache.activemq.AutoFailTestSupport;
 import org.apache.activemq.TestSupport;
@@ -576,12 +575,12 @@ public class FailoverTransactionTest ext
 
         session.commit();
         for (int i = 0; i < count - 1; i++) {
-            assertNotNull("we got all the message: " + count, consumer.receive(20000));
+            assertNotNull("Failed to get message: " + count, consumer.receive(20000));
         }
         session.commit();
         connection.close();
 
-        assertTrue("connectionconsumer got a message", connectionConsumerGotOne.await(10,
TimeUnit.SECONDS));
+        assertTrue("connectionconsumer did not get a message", connectionConsumerGotOne.await(10,
TimeUnit.SECONDS));
     }
 
     public void testFailoverConsumerAckLost() throws Exception {



Mime
View raw message