From 3d844c3d128175b4a8ca3cf706a4d09d98b93586 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Sun, 16 Aug 2009 23:17:28 +0000 Subject: 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 --- .../main/java/org/apache/qpid/server/logging/AlertingTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'java') 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. -- cgit v1.2.1