|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.log4j.rolling.TimeBasedRollingTest
public class TimeBasedRollingTest
A rather exhaustive set of tests. Tests include leaving the ActiveFileName argument 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 sould be generated and compare them with witness files.
Compression ActiveFileName 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
Constructor Summary | |
---|---|
TimeBasedRollingTest(java.lang.String name)
|
Method Summary | |
---|---|
void |
setUp()
|
void |
tearDown()
|
void |
test1()
Test rolling without compression, activeFileName left blank, no stop/start |
void |
test2()
No compression, with stop/restart, activeFileName left blank |
void |
test3()
With compression, activeFileName left blank, no stop/restart |
void |
test4()
Without compression, activeFileName set, with stop/restart |
void |
test5()
No compression, activeFileName set, without stop/restart |
void |
test6()
With compression, activeFileName set, no stop/restart, |
void |
testWithJoran1()
|
void |
XXXtestWithJoran10()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeBasedRollingTest(java.lang.String name)
Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public void tearDown()
tearDown
in class junit.framework.TestCase
public void test1() throws java.lang.Exception
java.lang.Exception
public void test2() throws java.lang.Exception
java.lang.Exception
public void test3() throws java.lang.Exception
java.lang.Exception
public void test4() throws java.lang.Exception
java.lang.Exception
public void test5() throws java.lang.Exception
java.lang.Exception
public void test6() throws java.lang.Exception
java.lang.Exception
public void testWithJoran1() throws java.lang.Exception
java.lang.Exception
public void XXXtestWithJoran10() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.