|
||||||||||
| 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.commons.configuration.tree.TestDefaultConfigurationNode
public class TestDefaultConfigurationNode
Test class for DefaultConfigurationNode.
| Constructor Summary | |
|---|---|
TestDefaultConfigurationNode()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testAddAttribute()
Tests adding a new attribute node. |
void |
testAddChild()
Tests adding a new child node. |
void |
testAddUndefinedChild()
Tests adding invalid child nodes. |
void |
testChangeAttributeState()
Tests changing a node's attribute state. |
void |
testClone()
Tests cloning a node. |
void |
testGetAttributes()
Tests accessing the node's attributes. |
void |
testGetAttributesByName()
Tests accessing the node's attributes by name. |
void |
testGetChild()
Tests accessing a child by its index. |
void |
testGetChildInvalidIndex()
Tests accessing child nodes with invalid indices. |
void |
testGetChildren()
Tests accessing the node's children. |
void |
testGetChildrenByName()
Tests accessing the node's children by name. |
void |
testGetReference()
Tests accessing a node's reference. |
void |
testNewNode()
Tests a newly created, uninitialized node. |
void |
testRemoveAttribute()
Tests removing an attribute node. |
void |
testRemoveAttributeByName()
Tests removing attributes by their names. |
void |
testRemoveAttributes()
Tests removing all attributes. |
void |
testRemoveChild()
Tests removing a child node. |
void |
testRemoveChildByName()
Tests removing children by their name. |
void |
testRemoveChildren()
Tests removing all children at once. |
void |
testRemoveNonExistingChild()
Tests removing a child node that does not belong to this node. |
void |
testVisit()
Tests the visit() method using a simple visitor. |
void |
testVisitWithNullVisitor()
Tests the visit() method when null is passed in. |
void |
testVisitWithTerminate()
Tests the visit() method with a visitor that terminates the visit process. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 TestDefaultConfigurationNode()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testNewNode()
public void testGetReference()
public void testGetChildren()
public void testGetChildrenByName()
public void testAddChild()
public void testAddUndefinedChild()
public void testRemoveChild()
public void testRemoveNonExistingChild()
public void testRemoveChildByName()
public void testRemoveChildren()
public void testGetChild()
public void testGetChildInvalidIndex()
public void testGetAttributes()
public void testGetAttributesByName()
public void testAddAttribute()
public void testRemoveAttribute()
public void testRemoveAttributeByName()
public void testRemoveAttributes()
public void testChangeAttributeState()
public void testVisit()
public void testVisitWithTerminate()
public void testVisitWithNullVisitor()
public void testClone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||