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 09:27:27 UTC

svn commit: r1349165 - /logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/helpers/OptionConverterTestCase.java

Author: grobmeier
Date: Tue Jun 12 07:27:26 2012
New Revision: 1349165

URL: http://svn.apache.org/viewvc?rev=1349165&view=rev
Log:
fixed testcase with searching the file with using getResource

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

Modified: logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/helpers/OptionConverterTestCase.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/helpers/OptionConverterTestCase.java?rev=1349165&r1=1349164&r2=1349165&view=diff
==============================================================================
--- logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/helpers/OptionConverterTestCase.java (original)
+++ logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/helpers/OptionConverterTestCase.java Tue Jun 12 07:27:26 2012
@@ -130,7 +130,7 @@ public class OptionConverterTestCase ext
    * @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 {