[logback-dev] svn commit: r1595 - in logback/trunk/logback-classic/src/test: input/joran java/ch/qos/logback/classic/joran

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Oct 4 13:09:21 CEST 2007


Author: ceki
Date: Thu Oct  4 13:09:21 2007
New Revision: 1595

Modified:
   logback/trunk/logback-classic/src/test/input/joran/simpleLevel.xml
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/BasicJoranTest.java

Log:
cleaning up noise ouput during testing

Modified: logback/trunk/logback-classic/src/test/input/joran/simpleLevel.xml
==============================================================================
--- logback/trunk/logback-classic/src/test/input/joran/simpleLevel.xml	(original)
+++ logback/trunk/logback-classic/src/test/input/joran/simpleLevel.xml	Thu Oct  4 13:09:21 2007
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE configuration>
 
-<configuration debug="true">
+<configuration debug="false">
 
   <appender name="LIST" class="ch.qos.logback.core.read.ListAppender"/>
     

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/BasicJoranTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/BasicJoranTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/joran/BasicJoranTest.java	Thu Oct  4 13:09:21 2007
@@ -22,7 +22,6 @@
 import ch.qos.logback.classic.util.TestConstants;
 import ch.qos.logback.core.joran.spi.JoranException;
 import ch.qos.logback.core.read.ListAppender;
-import ch.qos.logback.core.util.StatusPrinter;
 
 public class BasicJoranTest extends TestCase {
 
@@ -55,8 +54,6 @@
     jc.setContext(loggerContext);
     jc.doConfigure(TestConstants.TEST_DIR_PREFIX + "input/joran/simpleLevel.xml");
 
-    //StatusPrinter.print(loggerContext.getStatusManager());
-  
     Logger logger = loggerContext.getLogger(this.getClass().getName());
     Logger root = loggerContext.getLogger(LoggerContext.ROOT_NAME);
     ListAppender listAppender = (ListAppender) root.getAppender("LIST");
@@ -64,8 +61,6 @@
     String msg = "hello world";
     logger.debug(msg);
     assertEquals(0, listAppender.list.size());
-    //LoggingEvent le = (LoggingEvent) listAppender.list.get(0);
-    //assertEquals(msg, le.getMessage());
   }
   
   public void testEval() throws JoranException {
@@ -74,7 +69,7 @@
     jc.setContext(loggerContext);
     jc.doConfigure(TestConstants.TEST_DIR_PREFIX + "input/joran/callerData.xml");
 
-    StatusPrinter.print(loggerContext);
+    //StatusPrinter.print(loggerContext);
     
     Logger logger = loggerContext.getLogger(this.getClass().getName());
     String msg = "hello world";
@@ -124,10 +119,14 @@
     assertEquals(2, dutf.getUsers().size());
   }
   
-  
+  public void test() {
+    
+  }
   // COMMENTED_OUT_
-  public static Test COMMENTED_OUT_suite() {
+  public static Test suite() {
     TestSuite suite = new TestSuite();
+    //suite.addTestSuite(BasicJoranTest.class);
+    
     suite.addTest(new BasicJoranTest("testLevel"));
     
     //suite.addTest(new BasicJoranTest("testSimpleList"));



More information about the logback-dev mailing list