[slf4j-dev] svn commit: r204 - in slf4j/trunk/tests/src/java/org/slf4j: . impl

ceki at slf4j.org ceki at slf4j.org
Fri Aug 26 22:38:32 CEST 2005


Author: ceki
Date: Fri Aug 26 22:38:31 2005
New Revision: 204

Modified:
   slf4j/trunk/tests/src/java/org/slf4j/MarkerTest.java
   slf4j/trunk/tests/src/java/org/slf4j/XLoggerBySystemPropsTest.java
   slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java
Log:
fix compilation errors

Modified: slf4j/trunk/tests/src/java/org/slf4j/MarkerTest.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/MarkerTest.java	(original)
+++ slf4j/trunk/tests/src/java/org/slf4j/MarkerTest.java	Fri Aug 26 22:38:31 2005
@@ -43,30 +43,20 @@
   static final String COMP = "COMP";
 
   public void testPrimitive() {
-    Marker blue = Marker.getMarker(BLUE);
+    Marker blue = MarkerFactory.getMarker(BLUE);
     assertEquals(BLUE, blue.getName());
 
     //assertTrue(blue.isImmutable());
-    assertTrue(blue.matches(blue));
-    assertTrue(blue.matches(BLUE));
+    assertEquals("BLUE", blue.getName());
+    
 
-    Marker blue2 = Marker.getMarker(BLUE);
+    Marker blue2 = MarkerFactory.getMarker(BLUE);
     assertEquals(blue, blue2);
     //blue.add(blue2);
   }
 
   public void testStar() {
-    Marker blue = Marker.getMarker(BLUE);
+    Marker blue = MarkerFactory.getMarker(BLUE);
     assertEquals(BLUE, blue.getName());
-    Marker star = Marker.getMarker("*");
-
-    //assertTrue(blue.isImmutable());
-    assertTrue(blue.matches("*"));
-    assertTrue(blue.matches(star));
-
-    assertTrue(star.matches("asdasd"));
-    assertTrue(star.matches(star));
-
-    assertTrue(star.matches(blue));
   }
 }

Modified: slf4j/trunk/tests/src/java/org/slf4j/XLoggerBySystemPropsTest.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/XLoggerBySystemPropsTest.java	(original)
+++ slf4j/trunk/tests/src/java/org/slf4j/XLoggerBySystemPropsTest.java	Fri Aug 26 22:38:31 2005
@@ -39,7 +39,7 @@
 public class XLoggerBySystemPropsTest extends TestCase {
 
 	public void testBasic() {
-		System.setProperty(Constants.LOGGER_FA_FACTORY_PROPERTY, "org.slf4j.XLoggerFAFactory");
+		System.setProperty(Constants.LOGGER_FACTORY_PROPERTY, "org.slf4j.XLoggerFAFactory");
 		
 		Logger logger = LoggerFactory.getLogger("foo");
 		if(! (logger instanceof XLogger)) {

Modified: slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java	(original)
+++ slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java	Fri Aug 26 22:38:31 2005
@@ -33,6 +33,7 @@
 package org.slf4j.impl;
 
 import org.slf4j.Logger;
+import org.slf4j.Marker;
 
 
 /**
@@ -113,5 +114,194 @@
 
   public void error(String msg, Throwable t) {
   }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#getName()
+   */
+  public String getName() {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#isDebugEnabled(org.slf4j.Marker)
+   */
+  public boolean isDebugEnabled(Marker marker) {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#debug(org.slf4j.Marker, java.lang.String)
+   */
+  public void debug(Marker marker, String msg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#debug(org.slf4j.Marker, java.lang.String, java.lang.Object)
+   */
+  public void debug(Marker marker, String format, Object arg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#debug(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
+   */
+  public void debug(Marker marker, String format, Object arg1, Object arg2) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#debug(org.slf4j.Marker, java.lang.String, java.lang.Throwable)
+   */
+  public void debug(Marker marker, String msg, Throwable t) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#isInfoEnabled(org.slf4j.Marker)
+   */
+  public boolean isInfoEnabled(Marker marker) {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#info(org.slf4j.Marker, java.lang.String)
+   */
+  public void info(Marker marker, String msg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#info(org.slf4j.Marker, java.lang.String, java.lang.Object)
+   */
+  public void info(Marker marker, String format, Object arg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#info(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
+   */
+  public void info(Marker marker, String format, Object arg1, Object arg2) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#info(org.slf4j.Marker, java.lang.String, java.lang.Throwable)
+   */
+  public void info(Marker marker, String msg, Throwable t) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#isWarnEnabled(org.slf4j.Marker)
+   */
+  public boolean isWarnEnabled(Marker marker) {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#warn(org.slf4j.Marker, java.lang.String)
+   */
+  public void warn(Marker marker, String msg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#warn(org.slf4j.Marker, java.lang.String, java.lang.Object)
+   */
+  public void warn(Marker marker, String format, Object arg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#warn(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
+   */
+  public void warn(Marker marker, String format, Object arg1, Object arg2) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#warn(org.slf4j.Marker, java.lang.String, java.lang.Throwable)
+   */
+  public void warn(Marker marker, String msg, Throwable t) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#isErrorEnabled(org.slf4j.Marker)
+   */
+  public boolean isErrorEnabled(Marker marker) {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#error(org.slf4j.Marker, java.lang.String)
+   */
+  public void error(Marker marker, String msg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#error(org.slf4j.Marker, java.lang.String, java.lang.Object)
+   */
+  public void error(Marker marker, String format, Object arg) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#error(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
+   */
+  public void error(Marker marker, String format, Object arg1, Object arg2) {
+    // TODO Auto-generated method stub
+    
+  }
+
+
+  /* (non-Javadoc)
+   * @see org.slf4j.Logger#error(org.slf4j.Marker, java.lang.String, java.lang.Throwable)
+   */
+  public void error(Marker marker, String msg, Throwable t) {
+    // TODO Auto-generated method stub
+    
+  }
 }
 



More information about the slf4j-dev mailing list