activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r774431 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java
Date Wed, 13 May 2009 16:57:44 GMT
Author: gtully
Date: Wed May 13 16:57:42 2009
New Revision: 774431

URL: http://svn.apache.org/viewvc?rev=774431&view=rev
Log:
improve failure reporting in assert

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java?rev=774431&r1=774430&r2=774431&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/QueueConsumerPriorityTest.java
Wed May 13 16:57:42 2009
@@ -79,7 +79,7 @@
             Message msg = senderSession.createTextMessage("test");
             for (int i =0; i< 10000;i++) {
                 producer.send(msg);
-                Assert.assertNotNull(highConsumer.receive(100));
+                Assert.assertNotNull("null on iteration: " + i, highConsumer.receive(100));
             }
             Assert.assertNull( lowConsumer.receive(500));
             



Mime
View raw message