|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.tree.TestDefaultConfigurationNode
public class TestDefaultConfigurationNode
Test class for DefaultConfigurationNode.
Nested Class Summary | |
---|---|
static class |
TestDefaultConfigurationNode.CountNodeVisitor
A test visitor implementation that is able to count the number of visits. |
Constructor Summary | |
---|---|
TestDefaultConfigurationNode()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testAddAttribute()
Tests adding a new attribute node. |
void |
testAddChild()
Tests adding a new child node. |
void |
testAddChildNull()
Tries to add a null child node. |
void |
testAddUndefinedChild()
Tries to add a node without a name. |
void |
testChangeAttributeState()
Tests changing a node's attribute state. |
void |
testClone()
Tests cloning a node. |
void |
testGetAttributeNonExisting()
Tries to access an attribute using an invalid index. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestDefaultConfigurationNode()
Method Detail |
---|
public void setUp() throws Exception
Exception
public void testNewNode()
public void testGetAttributeNonExisting()
public void testGetReference()
public void testGetChildren()
public void testGetChildrenByName()
public void testAddChild()
public void testAddChildNull()
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 |