activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r883327 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
Date Mon, 23 Nov 2009 13:02:27 GMT
Author: dejanb
Date: Mon Nov 23 13:02:27 2009
New Revision: 883327

URL: http://svn.apache.org/viewvc?rev=883327&view=rev
Log:
PurgeTest- assert there are no messages in the queue, by trying to browse them

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java?rev=883327&r1=883326&r2=883327&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
Mon Nov 23 13:02:27 2009
@@ -86,6 +86,7 @@
         proxy.purge();
         count = proxy.getQueueSize();
         assertEquals("Queue size", count, 0);
+        assertEquals("Browse size", proxy.browseMessages().size(), 0);
 
         // Queues have a special case once there are more than a thousand
         // dead messages, make sure we hit that.
@@ -101,6 +102,7 @@
         proxy.purge();
         count = proxy.getQueueSize();
         assertEquals("Queue size", count, 0);
+        assertEquals("Browse size", proxy.browseMessages().size(), 0);
     }
     
     public void initCombosForTestDelete() {



Mime
View raw message