You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gr...@apache.org on 2012/06/12 10:54:15 UTC

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

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();