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
commit3d844c3d128175b4a8ca3cf706a4d09d98b93586 (patch)
treea6a3d4f142346f585aecf6c6a47f1a5f7d8d4737
parent864d27a492941e28c389fa5aa2edcc7004ca2a0e (diff)
downloadqpid-python-3d844c3d128175b4a8ca3cf706a4d09d98b93586.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/qpid@804814 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java b/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
index 14eec8daff..620b2a5161 100644
--- a/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
+++ b/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.