You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2015/07/03 11:42:42 UTC
[2/2] activemq git commit: Add sanity check of browse list
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 <ga...@gmail.com>
Authored: Thu Jul 2 21:58:13 2015 +0100
Committer: gtully <ga...@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);