[logback-dev] svn commit: r1248 - in logback/trunk: . logback-classic/src/test/java/ch/qos/logback/classic/net

noreply.seb at qos.ch noreply.seb at qos.ch
Thu Jan 18 14:07:25 CET 2007


Author: seb
Date: Thu Jan 18 14:07:25 2007
New Revision: 1248

Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java
   logback/trunk/pom.xml

Log:
commented out marker test
minor pom.xml modification

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SocketAppenderTest.java	Thu Jan 18 14:07:25 2007
@@ -12,10 +12,6 @@
 import java.util.Map;
 
 import junit.framework.TestCase;
-
-import org.slf4j.Marker;
-import org.slf4j.MarkerFactory;
-
 import ch.qos.logback.classic.Level;
 import ch.qos.logback.classic.Logger;
 import ch.qos.logback.classic.LoggerContext;
@@ -104,24 +100,24 @@
     assertEquals("testValue", MDCPropertyMap.get("key"));
   }
   
-  public void testMessageWithMarker() throws InterruptedException {
-    startServer(1);
-    configureClient();
-
-    Logger logger = lc.getLogger(LoggerContext.ROOT_NAME);
-    
-    Marker marker = MarkerFactory.getMarker("testMarker");
-    logger.debug(marker, "test msg");
-
-    // Wait max 2 seconds for mock server to finish. However, it should
-    // finish much sooner than that.
-    mockSocketServer.join(2000);
-    assertTrue(mockSocketServer.isFinished());
-    assertEquals(1, mockSocketServer.getEventsList().size());
-
-    LoggingEvent remoteEvent = mockSocketServer.getEventsList().get(0);
-    assertEquals("testMarker", remoteEvent.getMarker().getName());
-  }
+//  public void testMessageWithMarker() throws InterruptedException {
+//    startServer(1);
+//    configureClient();
+//
+//    Logger logger = lc.getLogger(LoggerContext.ROOT_NAME);
+//    
+//    Marker marker = MarkerFactory.getMarker("testMarker");
+//    logger.debug(marker, "test msg");
+//
+//    // Wait max 2 seconds for mock server to finish. However, it should
+//    // finish much sooner than that.
+//    mockSocketServer.join(2000);
+//    assertTrue(mockSocketServer.isFinished());
+//    assertEquals(1, mockSocketServer.getEventsList().size());
+//
+//    LoggingEvent remoteEvent = mockSocketServer.getEventsList().get(0);
+//    assertEquals("testMarker", remoteEvent.getMarker().getName());
+//  }
 
   public void testMessageWithUpdatedMDC() throws InterruptedException {
     startServer(2);

Modified: logback/trunk/pom.xml
==============================================================================
--- logback/trunk/pom.xml	(original)
+++ logback/trunk/pom.xml	Thu Jan 18 14:07:25 2007
@@ -69,6 +69,11 @@
         <artifactId>logback-access</artifactId>
         <version>${project.version}</version>
       </dependency>
+      <dependency>
+        <groupId>org.slf4j</groupId>
+        <artifactId>slf4j-api</artifactId>
+        <version>${slf4j.version}</version>
+      </dependency>
       
       <dependency>
         <groupId>janino</groupId>
@@ -86,11 +91,6 @@
         <version>1.6.1</version>
       </dependency>
       <dependency>
-        <groupId>org.slf4j</groupId>
-        <artifactId>slf4j-api</artifactId>
-        <version>1.1.0</version>
-      </dependency>
-      <dependency>
         <groupId>hsqldb</groupId>
         <artifactId>hsqldb</artifactId>
         <version>1.8.0.7</version>



More information about the logback-dev mailing list