[logback-dev] svn commit: r1318 - logback/trunk/log4j-bridge/src/test/java/org/apache/log4j

noreply.seb at qos.ch noreply.seb at qos.ch
Thu Feb 15 15:48:34 CET 2007


Author: seb
Date: Thu Feb 15 15:48:34 2007
New Revision: 1318

Modified:
   logback/trunk/log4j-bridge/src/test/java/org/apache/log4j/LoggerTest.java

Log:
forgot to call the super.setUp and super.tearDown methods.

Modified: logback/trunk/log4j-bridge/src/test/java/org/apache/log4j/LoggerTest.java
==============================================================================
--- logback/trunk/log4j-bridge/src/test/java/org/apache/log4j/LoggerTest.java	(original)
+++ logback/trunk/log4j-bridge/src/test/java/org/apache/log4j/LoggerTest.java	Thu Feb 15 15:48:34 2007
@@ -23,7 +23,7 @@
   ch.qos.logback.classic.Logger logbackLogger;
   org.apache.log4j.Logger log4jLogger;
 
-  public void setUp() {
+  public void setUp() throws Exception {
     context = (LoggerContext) LoggerFactory.getILoggerFactory();
     context.shutdownAndReset();
     appender = new ListAppender<LoggingEvent>();
@@ -36,15 +36,17 @@
 
     log4jLogger = org.apache.log4j.Logger.getLogger(LoggerTest.class);
     logbackLogger = context.getLogger(LoggerTest.class);
+    super.setUp();
   }
 
-  public void tearDown() {
+  public void tearDown() throws Exception {
     appender.stop();
     context.stop();
     appender = null;
     context = null;
     logbackLogger = null;
     log4jLogger = null;
+    super.tearDown();
   }
 
   public void testLogWithObjectMessages() {



More information about the logback-dev mailing list