de.qfs.apps.qflog.logview
Class LogLevelTreeModel.UnitTest

java.lang.Object
  |
  +--junit.framework.TestCase
        |
        +--de.qfs.apps.qflog.logview.LogLevelTreeModel.UnitTest
Enclosing class:
LogLevelTreeModel

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

Test cases for the LogLevelTreeModel class.


Constructor Summary
LogLevelTreeModel.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 testClassAdded()
          Test the classAdded method.
 void testConfigurable()
          Test the Configurable interface
 void testFireNodesInserted()
          Test whether fireNodesInserted is called.
 void testGetPath()
          Test the getPath method.
 void testLevels()
          Test the levelChanged and levelRemoved method, including the call to fireNodesChanged.
 void testSortOrder()
          Test whether classes and packages are sorted OK.
 
Methods inherited from class junit.framework.TestCase
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, countTestCases, createResult, fail, fail, getResult, name, notEqualsMessage, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogLevelTreeModel.UnitTest

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

testClassAdded

public void testClassAdded()
Test the classAdded method.

testFireNodesInserted

public void testFireNodesInserted()
Test whether fireNodesInserted is called.

testSortOrder

public void testSortOrder()
Test whether classes and packages are sorted OK.

testLevels

public void testLevels()
Test the levelChanged and levelRemoved method, including the call to fireNodesChanged.

testConfigurable

public void testConfigurable()
Test the Configurable interface

testGetPath

public void testGetPath()
Test the getPath method.