Java Doc for TestDefaultConfigurationNode.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » tree » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons configuration 1.4 src » org.apache.commons.configuration.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.tree.TestDefaultConfigurationNode

TestDefaultConfigurationNode
public class TestDefaultConfigurationNode extends TestCase (Code)
Test class for DefaultConfigurationNode.
author:
   Oliver Heger

Inner Class :static class CountNodeVisitor implements ConfigurationNodeVisitor

Field Summary
 DefaultConfigurationNodenode
     The node to be tested.


Method Summary
protected  voidsetUp()
    
public  voidtestAddAttribute()
     Tests adding a new attribute node.
public  voidtestAddChild()
     Tests adding a new child node.
public  voidtestAddUndefinedChild()
     Tests adding invalid child nodes.
public  voidtestChangeAttributeState()
     Tests changing a node's attribute state.
public  voidtestClone()
     Tests cloning a node.
public  voidtestGetAttributes()
     Tests accessing the node's attributes.
public  voidtestGetAttributesByName()
     Tests accessing the node's attributes by name.
public  voidtestGetChild()
     Tests accessing a child by its index.
public  voidtestGetChildInvalidIndex()
     Tests accessing child nodes with invalid indices.
public  voidtestGetChildren()
     Tests accessing the node's children.
public  voidtestGetChildrenByName()
     Tests accessing the node's children by name.
public  voidtestGetReference()
     Tests accessing a node's reference.
public  voidtestNewNode()
     Tests a newly created, uninitialized node.
public  voidtestRemoveAttribute()
     Tests removing an attribute node.
public  voidtestRemoveAttributeByName()
     Tests removing attributes by their names.
public  voidtestRemoveAttributes()
     Tests removing all attributes.
public  voidtestRemoveChild()
     Tests removing a child node.
public  voidtestRemoveChildByName()
     Tests removing children by their name.
public  voidtestRemoveChildren()
     Tests removing all children at once.
public  voidtestRemoveNonExistingChild()
     Tests removing a child node that does not belong to this node.
public  voidtestVisit()
     Tests the visit() method using a simple visitor.
public  voidtestVisitWithNullVisitor()
     Tests the visit() method when null is passed in.
public  voidtestVisitWithTerminate()
     Tests the visit() method with a visitor that terminates the visit process.

Field Detail
node
DefaultConfigurationNode node(Code)
The node to be tested.





Method Detail
setUp
protected void setUp() throws Exception(Code)



testAddAttribute
public void testAddAttribute()(Code)
Tests adding a new attribute node.



testAddChild
public void testAddChild()(Code)
Tests adding a new child node.



testAddUndefinedChild
public void testAddUndefinedChild()(Code)
Tests adding invalid child nodes.



testChangeAttributeState
public void testChangeAttributeState()(Code)
Tests changing a node's attribute state.



testClone
public void testClone()(Code)
Tests cloning a node.



testGetAttributes
public void testGetAttributes()(Code)
Tests accessing the node's attributes.



testGetAttributesByName
public void testGetAttributesByName()(Code)
Tests accessing the node's attributes by name.



testGetChild
public void testGetChild()(Code)
Tests accessing a child by its index.



testGetChildInvalidIndex
public void testGetChildInvalidIndex()(Code)
Tests accessing child nodes with invalid indices.



testGetChildren
public void testGetChildren()(Code)
Tests accessing the node's children.



testGetChildrenByName
public void testGetChildrenByName()(Code)
Tests accessing the node's children by name.



testGetReference
public void testGetReference()(Code)
Tests accessing a node's reference.



testNewNode
public void testNewNode()(Code)
Tests a newly created, uninitialized node.



testRemoveAttribute
public void testRemoveAttribute()(Code)
Tests removing an attribute node.



testRemoveAttributeByName
public void testRemoveAttributeByName()(Code)
Tests removing attributes by their names.



testRemoveAttributes
public void testRemoveAttributes()(Code)
Tests removing all attributes.



testRemoveChild
public void testRemoveChild()(Code)
Tests removing a child node.



testRemoveChildByName
public void testRemoveChildByName()(Code)
Tests removing children by their name.



testRemoveChildren
public void testRemoveChildren()(Code)
Tests removing all children at once.



testRemoveNonExistingChild
public void testRemoveNonExistingChild()(Code)
Tests removing a child node that does not belong to this node.



testVisit
public void testVisit()(Code)
Tests the visit() method using a simple visitor.



testVisitWithNullVisitor
public void testVisitWithNullVisitor()(Code)
Tests the visit() method when null is passed in. This should throw an exception.



testVisitWithTerminate
public void testVisitWithTerminate()(Code)
Tests the visit() method with a visitor that terminates the visit process.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.