qflib 0.98.0

de.qfs.lib.log
Class LogLevels.UnitTest

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

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

Test cases for the LogLevels class.


Constructor Summary
LogLevels.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 testFindNodeAndParent()
          Test the Node.findNodeAndParent method.
 void testGetLogLevel()
          Test the getLogLevel method.
 void testGetLogLevels()
          Test the getLogLevels method.
 void testListener()
          Test adding a log level listener.
 void testRemoveClassLevel()
          Test removing the log level for a class.
 void testRemovePackageLevel()
          Test removing the log level for a package.
 void testSetClassLevel()
          Test setting the log level for a class before and after it is requested.
 void testSetDefault()
          Test the setDefaultLogLevel method.
 void testSetPackageLevel()
          Test setting the log level for a package before and after class log levels are requested
 
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

LogLevels.UnitTest

public LogLevels.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.

testFindNodeAndParent

public void testFindNodeAndParent()
Test the Node.findNodeAndParent method.

testGetLogLevel

public void testGetLogLevel()
Test the getLogLevel method.

testSetDefault

public void testSetDefault()
Test the setDefaultLogLevel method.

testSetClassLevel

public void testSetClassLevel()
Test setting the log level for a class before and after it is requested.

testSetPackageLevel

public void testSetPackageLevel()
Test setting the log level for a package before and after class log levels are requested

testRemoveClassLevel

public void testRemoveClassLevel()
Test removing the log level for a class.

testRemovePackageLevel

public void testRemovePackageLevel()
Test removing the log level for a package.

testListener

public void testListener()
Test adding a log level listener.

testGetLogLevels

public void testGetLogLevels()
Test the getLogLevels method.

qflib 0.98.0