summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-08-06 16:56:03 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-08-06 16:56:03 +0000
commitfd92cbe296fb90a1064ce9adfbc44ac7e30fb04d (patch)
tree95fc8789ccaab41262125d2fea0772764b750ea2 /java
parent1f6ebd02f5f224c59ad0fc63ef8fdb4fc0682237 (diff)
downloadqpid-python-fd92cbe296fb90a1064ce9adfbc44ac7e30fb04d.tar.gz
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
Diffstat (limited to 'java')
-rw-r--r--java/systests/src/main/java/org/apache/qpid/server/logging/AbstractTestLogging.java8
1 files changed, 8 insertions, 0 deletions
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