qflib 0.98.1

de.qfs.lib.log
Class TreeFilter.UnitTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.qfs.lib.log.TreeFilter.UnitTest
All Implemented Interfaces:
junit.framework.Test
Enclosing class:
TreeFilter

public static class TreeFilter.UnitTest
extends junit.framework.TestCase

Test cases for the TreeFilter class.


Constructor Summary
TreeFilter.UnitTest(java.lang.String name)
          Create a new UnitTest.
 
Method Summary
protected  void setUp()
          Set up the test fixture.
static junit.framework.Test suite()
          Get the suite of tests.
 void testFilterMany()
          Test filtering of an array.
 void testRemoveLevel()
          Test removing the log levels for a class and package.
 void testRemoveRecursive()
          Test removing the log levels for a package recursively.
 void testSetClassLevel()
          Test setting the log level for a class.
 void testSetDefault()
          Test the setDefault method.
 void testSetMethodLevel()
          Test setting the log level for a method.
 void testSetPackageLevel()
          Test setting the log level for a package.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeFilter.UnitTest

public TreeFilter.UnitTest(java.lang.String name)
Create a new UnitTest.
Parameters:
name - The name of the test.
Method Detail

setUp

protected void setUp()
Set up the test fixture.
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Get the suite of tests.
Returns:
The tests.

testSetDefault

public void testSetDefault()
Test the setDefault method.

testSetMethodLevel

public void testSetMethodLevel()
Test setting the log level for a method.

testSetClassLevel

public void testSetClassLevel()
Test setting the log level for a class.

testSetPackageLevel

public void testSetPackageLevel()
Test setting the log level for a package.

testRemoveLevel

public void testRemoveLevel()
Test removing the log levels for a class and package.

testRemoveRecursive

public void testRemoveRecursive()
Test removing the log levels for a package recursively.

testFilterMany

public void testFilterMany()
Test filtering of an array.

qflib 0.98.1