[logback-dev] svn commit: r1802 - logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic

noreply.ceki at qos.ch noreply.ceki at qos.ch
Mon Sep 8 21:26:56 CEST 2008


Author: ceki
Date: Mon Sep  8 21:26:55 2008
New Revision: 1802

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/DynamicLoggerContextTest.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java

Log:
convert to a JUnit4 

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/DynamicLoggerContextTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/DynamicLoggerContextTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/DynamicLoggerContextTest.java	Mon Sep  8 21:26:55 2008
@@ -9,36 +9,39 @@
  */
 package ch.qos.logback.classic;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 
-import junit.framework.TestCase;
+import org.junit.Test;
 
-import ch.qos.logback.classic.Level;
-import ch.qos.logback.classic.Logger;
-import ch.qos.logback.classic.LoggerContext;
+import ch.qos.logback.classic.control.ControlAction;
 import ch.qos.logback.classic.control.ControlLogger;
 import ch.qos.logback.classic.control.ControlLoggerContext;
 import ch.qos.logback.classic.control.CreateLogger;
 import ch.qos.logback.classic.control.Scenario;
 import ch.qos.logback.classic.control.ScenarioMaker;
 import ch.qos.logback.classic.control.SetLevel;
-import ch.qos.logback.classic.control.ControlAction;
 
 
-public class DynamicLoggerContextTest extends TestCase {
+public class DynamicLoggerContextTest  {
   LoggerContext lc;
 
-
+  
+  @Test
   public void test3() {
     dynaTest(3);
   }
 
+  @Test
   public void test30() {
     dynaTest(30);
   }
 
+  @Test
   public void test1000() {
     dynaTest(1000);
   }

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PackageTest.java	Mon Sep  8 21:26:55 2008
@@ -17,7 +17,7 @@
     TestSuite suite = new TestSuite();
     suite.addTestSuite(LoggerContextTest.class);
     suite.addTestSuite(LoggerPerfTest.class);
-    suite.addTestSuite(DynamicLoggerContextTest.class);
+    suite.addTest(new JUnit4TestAdapter(DynamicLoggerContextTest.class));
     suite.addTestSuite(PatternLayoutTest.class);
     suite.addTestSuite(BasicLoggerTest.class);
     suite.addTestSuite(MessageFormattingTest.class);


More information about the logback-dev mailing list