logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1582163 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderNoLocationTest.java
Date Thu, 27 Mar 2014 02:56:52 GMT
Author: mattsicker
Date: Thu Mar 27 02:56:51 2014
New Revision: 1582163

URL: http://svn.apache.org/r1582163
Log:
Update to use convenience method.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderNoLocationTest.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderNoLocationTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderNoLocationTest.java?rev=1582163&r1=1582162&r2=1582163&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderNoLocationTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/AsyncAppenderNoLocationTest.java
Thu Mar 27 02:56:51 2014
@@ -23,7 +23,6 @@ import java.util.List;
 
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.LoggerContext;
 import org.apache.logging.log4j.junit.InitialLoggerContext;
 import org.apache.logging.log4j.test.appender.ListAppender;
 import org.junit.*;
@@ -39,8 +38,7 @@ public class AsyncAppenderNoLocationTest
 
     @Before
     public void setUp() throws Exception {
-        final LoggerContext ctx = this.init.getContext();
-        this.app = (ListAppender) ctx.getConfiguration().getAppenders().get("List");
+        this.app = (ListAppender) this.init.getAppender("List");
     }
 
     @After



Mime
View raw message