From 06611d9c1902ba01c5b32cd898d59317d38254f1 Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Fri, 21 Oct 2011 22:18:28 +0000 Subject: [PATCH] Fix assertion error messages so that indicate an actual error. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1187577 13f79535-47bb-0310-9956-ffa450edef68 --- .../activemq/transport/failover/FailoverTransactionTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java index 417a8c7576..ffac1b2653 100644 --- a/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java @@ -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 extends TestSupport { 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 {