summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-08-16 23:17:28 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-08-16 23:17:28 +0000
commit885f0f1c1b3d57173bec807ab1d81961c1ab99e0 (patch)
tree6660544f185ec3e6b252c83d65220bc0cc782934
parentbab2f6f22626ad0b0d273b2e33d349aa4450f3b8 (diff)
downloadqpid-python-885f0f1c1b3d57173bec807ab1d81961c1ab99e0.tar.gz
Ensured AlertingTest cleans up after its run. So we don't have to ant clean between tests
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@804814 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
index 14eec8daff..620b2a5161 100644
--- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
+++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
@@ -65,6 +65,15 @@ public class AlertingTest extends AbstractTestLogging
setupConnection();
}
+ @Override
+ public void tearDown() throws Exception
+ {
+ // Ensure queue is clean for next run.
+ drainQueue(_destination);
+ super.tearDown();
+ }
+
+
/**
* Create a new connection and ensure taht our destination queue is created
* and bound.