logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1483423 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/XMLLayoutTest.java
Date Thu, 16 May 2013 15:57:24 GMT
Author: ggregory
Date: Thu May 16 15:57:23 2013
New Revision: 1483423

URL: http://svn.apache.org/r1483423
Log:
Sort members.

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

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/XMLLayoutTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/XMLLayoutTest.java?rev=1483423&r1=1483422&r2=1483423&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/XMLLayoutTest.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/layout/XMLLayoutTest.java
Thu May 16 15:57:23 2013
@@ -36,11 +36,15 @@ import static org.junit.Assert.assertTru
  *
  */
 public class XMLLayoutTest {
-    LoggerContext ctx = (LoggerContext) LogManager.getContext();
-    Logger root = ctx.getLogger("");
-
+    private static final String body =
+        "<log4j:message><![CDATA[empty mdc]]></log4j:message>";
     static ConfigurationFactory cf = new BasicConfigurationFactory();
 
+    @AfterClass
+    public static void cleanupClass() {
+        ConfigurationFactory.removeConfigurationFactory(cf);
+    }
+
     @BeforeClass
     public static void setupClass() {
         ConfigurationFactory.setConfigurationFactory(cf);
@@ -48,13 +52,9 @@ public class XMLLayoutTest {
         ctx.reconfigure();
     }
 
-    @AfterClass
-    public static void cleanupClass() {
-        ConfigurationFactory.removeConfigurationFactory(cf);
-    }
+    LoggerContext ctx = (LoggerContext) LogManager.getContext();
 
-    private static final String body =
-        "<log4j:message><![CDATA[empty mdc]]></log4j:message>";
+    Logger root = ctx.getLogger("");
 
 
     /**



Mime
View raw message