logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r1349165 - /logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/helpers/OptionConverterTestCase.java
Date Tue, 12 Jun 2012 07:27:27 GMT
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 {



Mime
View raw message