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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Wed May 7 18:09:34 CEST 2008


Author: ceki
Date: Wed May  7 18:09:33 2008
New Revision: 1692

Added:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestConstants.java
      - copied, changed from r1691, /logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestContants.java
Removed:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestContants.java
Modified:
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PatternLayoutTest.java
   logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SyslogAppenderTest.java

Log:
- rename  TestContants as TestConstants

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PatternLayoutTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PatternLayoutTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/PatternLayoutTest.java	Wed May  7 18:09:33 2008
@@ -64,7 +64,7 @@
     pl.start();
     String val = pl.doLayout(getEventObject());
     // 2006-02-01 22:38:06,212 INFO [main] c.q.l.pattern.ConverterTest - Some message
-    String regex = TestContants.ISO_REGEX+" INFO \\[main] c.q.l.c.pattern.ConverterTest - Some message\\s*";
+    String regex = TestConstants.ISO_REGEX+" INFO \\[main] c.q.l.c.pattern.ConverterTest - Some message\\s*";
     assertTrue(val.matches(regex));
   }
 
@@ -86,7 +86,7 @@
     pl.start();
     String val = pl.doLayout(getEventObject());
     // 2008-03-18 21:55:54,250 [main] c.q.l.c.pattern.ConverterTest - Some message
-    String regex = TestContants.ISO_REGEX+" \\[main] c.q.l.c.p.ConverterTest   - Some message\\s*";
+    String regex = TestConstants.ISO_REGEX+" \\[main] c.q.l.c.p.ConverterTest   - Some message\\s*";
     System.out.println(val);
     assertTrue(val.matches(regex));
 
@@ -123,7 +123,7 @@
     pl.start();
     String val = pl.doLayout(getEventObject());
     // 2006-02-01 22:38:06,212 INFO [main] c.q.l.pattern.ConverterTest - Some message
-    String regex = TestContants.ISO_REGEX+" INFO \\[main] c.q.l.c.pattern.ConverterTest - Some message\\s*";
+    String regex = TestConstants.ISO_REGEX+" INFO \\[main] c.q.l.c.pattern.ConverterTest - Some message\\s*";
     assertTrue(val.matches(regex));
   }
   

Copied: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestConstants.java (from r1691, /logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestContants.java)
==============================================================================
--- /logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestContants.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/TestConstants.java	Wed May  7 18:09:33 2008
@@ -9,7 +9,7 @@
  */
 package ch.qos.logback.classic;
 
-public class TestContants {
+public class TestConstants {
 
   final static public String ISO_REGEX =  "\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}";
   

Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SyslogAppenderTest.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SyslogAppenderTest.java	(original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/net/SyslogAppenderTest.java	Wed May  7 18:09:33 2008
@@ -19,7 +19,7 @@
 
 import ch.qos.logback.classic.Logger;
 import ch.qos.logback.classic.LoggerContext;
-import ch.qos.logback.classic.TestContants;
+import ch.qos.logback.classic.TestConstants;
 import ch.qos.logback.classic.joran.JoranConfigurator;
 import ch.qos.logback.classic.net.mock.MockSyslogServer;
 import ch.qos.logback.core.joran.spi.JoranException;
@@ -141,7 +141,7 @@
     JoranConfigurator configurator = new JoranConfigurator();
     configurator.setContext(lc);
     lc.shutdownAndReset();
-    configurator.doConfigure(TestContants.JORAN_ONPUT_PREFIX
+    configurator.doConfigure(TestConstants.JORAN_ONPUT_PREFIX
         + "/syslog_147.xml");
 
     org.slf4j.Logger logger = LoggerFactory.getLogger(this.getClass());



More information about the logback-dev mailing list