logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r1349173 - /logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
Date Tue, 12 Jun 2012 07:50:46 GMT
Author: grobmeier
Date: Tue Jun 12 07:50:46 2012
New Revision: 1349173

URL: http://svn.apache.org/viewvc?rev=1349173&view=rev
Log:
fixed paths in testcase

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

Modified: logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/varia/ErrorHandlerTestCase.java?rev=1349173&r1=1349172&r2=1349173&view=diff
==============================================================================
--- logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
(original)
+++ logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
Tue Jun 12 07:50:46 2012
@@ -63,7 +63,7 @@ public class ErrorHandlerTestCase extend
   }
 
   public void test1() throws Exception {
-    DOMConfigurator.configure("target/test-classes/input/xml/fallback1.xml");
+    DOMConfigurator.configure(this.getClass().getResource("/input/xml/fallback1.xml").getPath());
     Appender primary = root.getAppender("PRIMARY");
     ErrorHandler eh = primary.getErrorHandler();
     assertNotNull(eh);
@@ -78,12 +78,11 @@ public class ErrorHandlerTestCase extend
                             new JunitTestRunnerFilter(),
                             new SunReflectFilter()});
 
-
-    assertTrue(Compare.compare(FILTERED, "target/test-classes/witness/fallback1"));
+    assertTrue(Compare.compare(FILTERED, this.getClass().getResource("/witness/fallback1").getPath()));
   }
   
   public void test2() throws Exception {
-    PropertyConfigurator.configure("target/test-classes/input/fallback1.properties");
+    PropertyConfigurator.configure(this.getClass().getResource("/input/fallback1.properties").getPath());
     Appender primary = root.getAppender("PRIMARY");
     ErrorHandler eh = primary.getErrorHandler();
     assertNotNull(eh);
@@ -99,7 +98,7 @@ public class ErrorHandlerTestCase extend
                             new SunReflectFilter()});
 
 
-    assertTrue(Compare.compare(FILTERED, "target/test-classes/witness/fallback1"));
+    assertTrue(Compare.compare(FILTERED, this.getClass().getResource("/witness/fallback1").getPath()));
   }
 
   void common() {



Mime
View raw message