activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [2/2] activemq git commit: Add sanity check of browse list
Date Fri, 03 Jul 2015 09:42:42 GMT
Add sanity check of browse list


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/fef8cac0
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/fef8cac0
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/fef8cac0

Branch: refs/heads/master
Commit: fef8cac05f757432c10dcf47ca7ea3028b7614d6
Parents: 5abd2d2
Author: gtully <gary.tully@gmail.com>
Authored: Thu Jul 2 21:58:13 2015 +0100
Committer: gtully <gary.tully@gmail.com>
Committed: Fri Jul 3 10:30:16 2015 +0100

----------------------------------------------------------------------
 .../src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/fef8cac0/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
index ce8e3ae..1ae369b 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/broker/jmx/PurgeTest.java
@@ -83,6 +83,8 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
         long count = proxy.getQueueSize();
         assertEquals("Queue size", count, messageCount);
 
+        assertEquals("Browse size", messageCount, proxy.browseMessages().size());
+
         proxy.purge();
         count = proxy.getQueueSize();
         assertEquals("Queue size", count, 0);


Mime
View raw message