You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/04/20 07:55:47 UTC

logging-log4j2 git commit: Better assert failure message.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master e408abee4 -> 55c829fee


Better assert failure message.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/55c829fe
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/55c829fe
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/55c829fe

Branch: refs/heads/master
Commit: 55c829fee8daa65275762c6f0f689c3d6c88c1bf
Parents: e408abe
Author: Gary Gregory <ga...@gmail.com>
Authored: Sun Apr 19 22:55:45 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sun Apr 19 22:55:45 2015 -0700

----------------------------------------------------------------------
 .../apache/logging/log4j/core/appender/ConsoleAppenderTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/55c829fe/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderTest.java
index 3c5fe35..0ba7477 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderTest.java
@@ -101,7 +101,7 @@ public class ConsoleAppenderTest {
         System.setOut(ps);
         final String msg = baos.toString();
         assertNotNull("No message", msg);
-        assertTrue("Incorrect message: " + msg , msg.endsWith("Test" + Constants.LINE_SEPARATOR));
+        assertTrue("Incorrect message: \"" + msg + "\"" , msg.endsWith("Test" + Constants.LINE_SEPARATOR));
         app.stop();
         assertFalse("Appender did not stop", app.isStarted());
     }