improve failure reporting in assert

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@774431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-05-13 16:57:42 +00:00
parent 09bae42a83
commit 2407a7b4ec
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class QueueConsumerPriorityTest extends TestCase {
Message msg = senderSession.createTextMessage("test"); Message msg = senderSession.createTextMessage("test");
for (int i =0; i< 10000;i++) { for (int i =0; i< 10000;i++) {
producer.send(msg); producer.send(msg);
Assert.assertNotNull(highConsumer.receive(100)); Assert.assertNotNull("null on iteration: " + i, highConsumer.receive(100));
} }
Assert.assertNull( lowConsumer.receive(500)); Assert.assertNull( lowConsumer.receive(500));