logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r1349197 - /logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java
Date Tue, 12 Jun 2012 08:54:15 GMT
Author: grobmeier
Date: Tue Jun 12 08:54:14 2012
New Revision: 1349197

URL: http://svn.apache.org/viewvc?rev=1349197&view=rev
Log:
fixed path in unit test

Modified:
    logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java

Modified: logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java?rev=1349197&r1=1349196&r2=1349197&view=diff
==============================================================================
--- logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java
(original)
+++ logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/PropertyConfiguratorTest.java
Tue Jun 12 08:54:14 2012
@@ -100,7 +100,7 @@ public class PropertyConfiguratorTest ex
      * @since 1.2.17
      */
     public void testInputStream() throws IOException {
-        File file = new File("input/filter1.properties");
+        File file = new File(this.getClass().getResource("/input/filter1.properties").getFile());
         assertTrue(file.exists());
         FileInputStream inputStream = new FileInputStream(file);
         try {
@@ -312,7 +312,7 @@ public class PropertyConfiguratorTest ex
      */
     public void testNested() {
         try {
-            PropertyConfigurator.configure("input/filter1.properties");
+            PropertyConfigurator.configure(this.getClass().getResource("/input/filter1.properties").getPath());
             this.validateNested();
         } finally {
             LogManager.resetConfiguration();



Mime
View raw message