[logback-dev] svn commit: r1576 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action

noreply.ceki at qos.ch noreply.ceki at qos.ch
Wed Aug 22 20:28:25 CEST 2007


Author: ceki
Date: Wed Aug 22 20:28:24 2007
New Revision: 1576

Modified:
   logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeFileActionTest.java

Log:
the URL format for local files is file:./path/to/local/file

Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeFileActionTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeFileActionTest.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/action/IncludeFileActionTest.java	Wed Aug 22 20:28:24 2007
@@ -36,7 +36,7 @@
       + "includeByResource.xml";
 
   static final String INCLUDED_FILE = INCLUSION_DIR_PREFIX + "included.xml";
-  static final String URL_TO_INCLUDE = "file://./" + INCLUDED_FILE;
+  static final String URL_TO_INCLUDE = "file:./" + INCLUDED_FILE;
 
   static final String INVALID = INCLUSION_DIR_PREFIX + "invalid.xml";
 
@@ -81,12 +81,12 @@
     verifyConfig(2);
   }
 
-  // public void testBasicURL() throws JoranException {
-  // System.setProperty(FILE_KEY, URL_TO_INCLUDE);
-  // tc.doConfigure(INCLUDE_BY_URL);
-  // StatusPrinter.print(context);
-  // verifyConfig(2);
-  // }
+   public void testBasicURL() throws JoranException {
+    System.setProperty(FILE_KEY, URL_TO_INCLUDE);
+    tc.doConfigure(INCLUDE_BY_URL);
+    StatusPrinter.print(context);
+    verifyConfig(2);
+  }
 
   public void testNoFileFound() throws JoranException {
     System.setProperty(FILE_KEY, "toto");



More information about the logback-dev mailing list