diff options
author | gjoranv <gv@yahoo-inc.com> | 2017-03-07 12:24:22 +0100 |
---|---|---|
committer | gjoranv <gv@yahoo-inc.com> | 2017-03-07 12:24:22 +0100 |
commit | 49a18782e8d5bfdf2ad7b8309f0e2a329b8ac470 (patch) | |
tree | 20884a03cdc509af663b3b976874e4e67fd55765 /container-accesslogging/src/test/java/com/yahoo | |
parent | 890e55ee1336edc1f1d391bbe1cb7ff0ebdae3fc (diff) |
Remove test for invalid use case.
(Delete the directory of the logfile while logging.)
Diffstat (limited to 'container-accesslogging/src/test/java/com/yahoo')
-rw-r--r-- | container-accesslogging/src/test/java/com/yahoo/container/logging/test/LogFileHandlerTestCase.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/container-accesslogging/src/test/java/com/yahoo/container/logging/test/LogFileHandlerTestCase.java b/container-accesslogging/src/test/java/com/yahoo/container/logging/test/LogFileHandlerTestCase.java index bde40f289de..b1dfbbcd8e2 100644 --- a/container-accesslogging/src/test/java/com/yahoo/container/logging/test/LogFileHandlerTestCase.java +++ b/container-accesslogging/src/test/java/com/yahoo/container/logging/test/LogFileHandlerTestCase.java @@ -6,7 +6,6 @@ import com.yahoo.io.IOUtils; import org.junit.Test; import java.io.File; -import java.io.IOException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -116,33 +115,6 @@ public class LogFileHandlerTestCase { } @Test - public void testDeleteDirDuringLogging() throws IOException { - //create logfilehandler - LogFileHandler h = new LogFileHandler(); - h.setFilePattern("./testlogsG/delete/during/testlog"); - h.setFormatter(new SimpleFormatter()); - h.setRotationTimes("0 5 ..."); - - //write log - LogRecord lr = new LogRecord(Level.INFO, "testDeleteDirDuringLogging1"); - h.publish(lr); - h.flush(); - - //delete log file and dir - deleteRecursive("./testlogsG"); - - //write log again - LogRecord lr2 = new LogRecord(Level.INFO, "testDeleteDirDuringLogging2"); - h.publish(lr2); - h.flush(); - - deleteOnExit("./testlogsG"); - deleteOnExit("./testlogsG/delete"); - deleteOnExit("./testlogsG/delete/first"); - deleteOnExit("./testlogsG/delete/first/testlog"); - } - - @Test public void testSymlink() { LogFileHandler h = new LogFileHandler(); h.setFilePattern("./testlogforsymlinkchecking/logfilehandlertest.%Y%m%d%H%M%S%s"); |