Bullet-proof test.

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

Branch: refs/heads/master
Commit: ece34c1341d230a13017dd0440c4a5d32cf99fd0
Parents: 3cdbbed
Author: Gary Gregory <[email protected]>
Authored: Tue Nov 18 00:59:36 2014 -0500
Committer: Gary Gregory <[email protected]>
Committed: Tue Nov 18 00:59:36 2014 -0500

----------------------------------------------------------------------
 .../src/test/java/org/apache/logging/slf4j/LoggerTest.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ece34c13/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/LoggerTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/LoggerTest.java 
b/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/LoggerTest.java
index a5e5515..c346fbc 100644
--- a/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/LoggerTest.java
+++ b/log4j-slf4j-impl/src/test/java/org/apache/logging/slf4j/LoggerTest.java
@@ -16,12 +16,17 @@
  */
 package org.apache.logging.slf4j;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
 import java.util.List;
 import java.util.Locale;
 
 import org.apache.logging.log4j.core.util.Constants;
 import org.apache.logging.log4j.junit.InitialLoggerContext;
 import org.apache.logging.log4j.test.appender.ListAppender;
+import org.junit.After;
 import org.junit.Before;
 import org.junit.ClassRule;
 import org.junit.Test;
@@ -35,8 +40,6 @@ import org.slf4j.ext.XLogger;
 import org.slf4j.ext.XLoggerFactory;
 import org.slf4j.spi.LocationAwareLogger;
 
-import static org.junit.Assert.*;
-
 /**
  *
  */
@@ -170,6 +173,7 @@ public class LoggerTest {
     }
 
     @Before
+    @After
     public void cleanup() {
         ctx.getListAppender("List").clear();
         ctx.getListAppender("EventLogger").clear();

Reply via email to