You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/03/28 17:15:56 UTC

svn commit: r1582795 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java

Author: mattsicker
Date: Fri Mar 28 16:15:55 2014
New Revision: 1582795

URL: http://svn.apache.org/r1582795
Log:
Fix FileOutputTest.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java?rev=1582795&r1=1582794&r2=1582795&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java (original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java Fri Mar 28 16:15:55 2014
@@ -17,12 +17,12 @@
 package org.apache.logging.log4j.core.config;
 
 import java.io.File;
-
 import org.apache.logging.log4j.core.LoggerContext;
 import org.apache.logging.log4j.core.config.xml.XMLConfiguration;
-import org.apache.logging.log4j.junit.CleanFiles;
 import org.apache.logging.log4j.junit.InitialLoggerContext;
-import org.junit.*;
+import org.junit.Before;
+import org.junit.Rule;
+import org.junit.Test;
 
 import static org.junit.Assert.assertTrue;
 
@@ -35,9 +35,6 @@ public class FileOutputTest {
     private static final String STATUS_LOG = "target/status.log";
 
     @Rule
-    public CleanFiles cleanFiles = new CleanFiles(STATUS_LOG);
-
-    @Rule
     public InitialLoggerContext init = new InitialLoggerContext(CONFIG);
 
     @Before
@@ -59,6 +56,7 @@ public class FileOutputTest {
         final File file = new File(STATUS_LOG);
         assertTrue("Status output file does not exist", file.exists());
         assertTrue("File is empty", file.length() > 0);
+        assertTrue("Couldn't delete file", file.delete());
     }
 
 }