logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1520033 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/RFC5424LayoutTest.java
Date Wed, 04 Sep 2013 14:28:01 GMT
Author: ggregory
Date: Wed Sep  4 14:28:01 2013
New Revision: 1520033

URL: http://svn.apache.org/r1520033
Log:
Better assert message.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/RFC5424LayoutTest.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/RFC5424LayoutTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/RFC5424LayoutTest.java?rev=1520033&r1=1520032&r2=1520033&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/RFC5424LayoutTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/RFC5424LayoutTest.java
Wed Sep  4 14:28:01 2013
@@ -227,7 +227,8 @@ public class RFC5424LayoutTest {
             final List<String> list = appender.getMessages();
 
             assertTrue("Not enough list entries", list.size() > 1);
-            assertTrue("No Exception", list.get(1).contains("IllegalArgumentException"));
+            final String string = list.get(1);
+			assertTrue("No Exception in " + string, string.contains("IllegalArgumentException"));
 
             appender.clear();
         } finally {



Mime
View raw message