ch.qos.logback.core.rolling
Class TimeBasedRollingTest

java.lang.Object
  extended by ch.qos.logback.core.rolling.TimeBasedRollingTest

public class TimeBasedRollingTest
extends Object

A rather exhaustive set of tests. Tests include leaving the file option blank, or setting it, with and without compression, and tests with or without stopping/restarting the RollingFileAppender. The regression tests log a few times using a RollingFileAppender. Then, they predict the names of the files which should be generated and compare them with witness files.

               Compression     file option    Stop/Restart 
    Test1      NO              BLANK           NO
    Test2      NO              BLANK           YES
    Test3      YES             BLANK           NO
    Test4      NO              SET             YES 
    Test5      NO              SET             NO
    Test6      YES             SET             NO
 

Author:
Ceki Gülcü

Constructor Summary
TimeBasedRollingTest()
           
 
Method Summary
 void noCompression_FileBlank_NoRestart_1()
          Test rolling without compression, file option left blank, no stop/start
 void noCompression_FileBlank_StopRestart_2()
          No compression, file option left blank, with stop/restart,
 void noCompression_FileSet_NoRestart_5()
          No compression, file option set, without stop/restart
 void noCompression_FileSet_StopRestart_4()
          Without compression, file option set, with stop/restart
 void noCompression_FileSet_StopRestart_WithLongWait_4B()
           
 void setUp()
           
 void tearDown()
           
 void withCompression_FileBlank_NoRestart_3()
          With compression, file option left blank, no stop/restart
 void withCompression_FileSet_NoRestart_6()
          With compression, file option set, no stop/restart,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBasedRollingTest

public TimeBasedRollingTest()
Method Detail

setUp

public void setUp()

tearDown

public void tearDown()

noCompression_FileBlank_NoRestart_1

public void noCompression_FileBlank_NoRestart_1()
                                         throws Exception
Test rolling without compression, file option left blank, no stop/start

Throws:
Exception

noCompression_FileBlank_StopRestart_2

public void noCompression_FileBlank_StopRestart_2()
                                           throws Exception
No compression, file option left blank, with stop/restart,

Throws:
Exception

withCompression_FileBlank_NoRestart_3

public void withCompression_FileBlank_NoRestart_3()
                                           throws Exception
With compression, file option left blank, no stop/restart

Throws:
Exception

noCompression_FileSet_StopRestart_4

public void noCompression_FileSet_StopRestart_4()
                                         throws Exception
Without compression, file option set, with stop/restart

Throws:
Exception

noCompression_FileSet_StopRestart_WithLongWait_4B

public void noCompression_FileSet_StopRestart_WithLongWait_4B()
                                                       throws Exception
Throws:
Exception

noCompression_FileSet_NoRestart_5

public void noCompression_FileSet_NoRestart_5()
                                       throws Exception
No compression, file option set, without stop/restart

Throws:
Exception

withCompression_FileSet_NoRestart_6

public void withCompression_FileSet_NoRestart_6()
                                         throws Exception
With compression, file option set, no stop/restart,

Throws:
Exception


Copyright © 2005-2009 QOS.ch. All Rights Reserved.