[slf4j-dev] svn commit: r1172 - slf4j/trunk/slf4j-jcl/src/test/java/org/slf4j

ceki at slf4j.org ceki at slf4j.org
Thu Oct 2 23:15:08 CEST 2008


Author: ceki
Date: Thu Oct  2 23:15:07 2008
New Revision: 1172

Modified:
   slf4j/trunk/slf4j-jcl/src/test/java/org/slf4j/InvocationTest.java

Log:
- keep tests quiet
- fixed bug in version check code

Modified: slf4j/trunk/slf4j-jcl/src/test/java/org/slf4j/InvocationTest.java
==============================================================================
--- slf4j/trunk/slf4j-jcl/src/test/java/org/slf4j/InvocationTest.java	(original)
+++ slf4j/trunk/slf4j-jcl/src/test/java/org/slf4j/InvocationTest.java	Thu Oct  2 23:15:07 2008
@@ -33,6 +33,8 @@
 
 package org.slf4j;
 
+import java.util.logging.Level;
+
 import junit.framework.TestCase;
 
 
@@ -44,16 +46,23 @@
  */
 public class InvocationTest extends TestCase {
 
+  Level oldLevel;
+  java.util.logging.Logger root = java.util.logging.Logger.getLogger("");
+  
+  
   public InvocationTest (String arg0) {
     super(arg0);
   }
 
   protected void setUp() throws Exception {
     super.setUp();
+    oldLevel = root.getLevel();
+    root.setLevel(Level.OFF);
   }
 
   protected void tearDown() throws Exception {
     super.tearDown();
+    root.setLevel(oldLevel);
   }
   
   public void test1() {



More information about the slf4j-dev mailing list