org.apache.log4j.rolling
Class FilterBasedRollingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.log4j.rolling.FilterBasedRollingTest
All Implemented Interfaces:
junit.framework.Test

public class FilterBasedRollingTest
extends junit.framework.TestCase

Tests of rolling file appender with a filter based triggering policy.

Author:
Curt Arnold

Constructor Summary
FilterBasedRollingTest(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void test1()
          Test basic rolling functionality using configuration file.
 void test2()
          Test basic rolling functionality using explicit configuration.
 
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

FilterBasedRollingTest

public FilterBasedRollingTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

test1

public void test1()
           throws java.lang.Exception
Test basic rolling functionality using configuration file.

Throws:
java.lang.Exception

test2

public void test2()
           throws java.lang.Exception
Test basic rolling functionality using explicit configuration. Test fails when run immediately after test1.

Throws:
java.lang.Exception


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.