PurgeTest- assert there are no messages in the queue, by trying to browse them

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@883327 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-11-23 13:02:27 +00:00
parent 2a238f7c71
commit 1695cff244
1 changed files with 2 additions and 0 deletions

View File

@ -86,6 +86,7 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
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 @@ public class PurgeTest extends EmbeddedBrokerTestSupport {
proxy.purge();
count = proxy.getQueueSize();
assertEquals("Queue size", count, 0);
assertEquals("Browse size", proxy.browseMessages().size(), 0);
}
public void initCombosForTestDelete() {