logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1514122 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/StrictXMLConfigTest.java
Date Thu, 15 Aug 2013 01:44:12 GMT
Author: ggregory
Date: Thu Aug 15 01:44:12 2013
New Revision: 1514122

URL: http://svn.apache.org/r1514122
Log:
Test bullet-proofing.

Modified:
    logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/StrictXMLConfigTest.java

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/StrictXMLConfigTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/StrictXMLConfigTest.java?rev=1514122&r1=1514121&r2=1514122&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/StrictXMLConfigTest.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/StrictXMLConfigTest.java
Thu Aug 15 01:44:12 2013
@@ -34,6 +34,7 @@ import java.util.Locale;
 import java.util.Map;
 
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertNotNull;
 
 /**
  *
@@ -54,6 +55,7 @@ public class StrictXMLConfigTest {
         for (final Map.Entry<String, Appender<?>> entry : config.getAppenders().entrySet())
{
             if (entry.getKey().equals("List")) {
                 app = (ListAppender<LogEvent>) entry.getValue();
+                assertNotNull(app);
                 break;
             }
         }



Mime
View raw message