From fd92cbe296fb90a1064ce9adfbc44ac7e30fb04d Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Thu, 6 Aug 2009 16:56:03 +0000 Subject: QPID-2002 : Used new close feature of LogMonitor to ensure test log file only has data from test run git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@801718 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/server/logging/AbstractTestLogging.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'java') diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java b/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java index c5a2f499f0..ccf3ae76fd 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java +++ b/java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java @@ -38,6 +38,14 @@ public class AbstractTestLogging extends QpidTestCase super.setUp(); _monitor = new LogMonitor(_outputFile); } + + @Override + public void tearDown() throws Exception + { + _monitor.close(); + super.tearDown(); + } + /** * assert that the requested log message has not occured -- cgit v1.2.1