logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwilli...@apache.org
Subject svn commit: r1500562 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/JPAAppenderTest.java
Date Mon, 08 Jul 2013 01:52:09 GMT
Author: nickwilliams
Date: Mon Jul  8 01:52:09 2013
New Revision: 1500562

URL: http://svn.apache.org/r1500562
Log:
[LOG4J2-229] Hopefully fixing the failing unit tests that Remko is reporting.

Modified:
    logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/JPAAppenderTest.java

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/JPAAppenderTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/JPAAppenderTest.java?rev=1500562&r1=1500561&r2=1500562&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/JPAAppenderTest.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/db/jpa/JPAAppenderTest.java
Mon Jul  8 01:52:09 2013
@@ -156,7 +156,7 @@ public class JPAAppenderTest {
             final PrintWriter writer = new PrintWriter(outputStream);
             exception.printStackTrace(writer);
             writer.close();
-            final String stackTrace = outputStream.toString();
+            final String stackTrace = outputStream.toString().replace("\r\n", "\n");
 
             final long millis = System.currentTimeMillis();
 
@@ -218,7 +218,7 @@ public class JPAAppenderTest {
             final PrintWriter writer = new PrintWriter(outputStream);
             exception.printStackTrace(writer);
             writer.close();
-            final String stackTrace = outputStream.toString();
+            final String stackTrace = outputStream.toString().replace("\r\n", "\n");
 
             final long millis = System.currentTimeMillis();
 



Mime
View raw message