mirror of https://github.com/apache/activemq.git
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:
parent
2a238f7c71
commit
1695cff244
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue