Java Doc for TestDefaultConfigurationKey.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.TestDefaultConfigurationKey

TestDefaultConfigurationKey
public class TestDefaultConfigurationKey extends TestCase (Code)
Test class for DefaultConfigurationKey.
author:
   Oliver Heger
version:
   $Id: TestDefaultConfigurationKey.java 439648 2006-09-02 20:42:10Z oheger $


Field Summary
 DefaultExpressionEngineexpressionEngine
     Stores the expression engine of the key to test.
 DefaultConfigurationKeykey
     Stores the object to be tested.


Method Summary
protected  voidsetUp()
    
public  voidtestAppend()
     Tests appending keys.
public  voidtestAppendAttribute()
     Tests appending attribute keys.
public  voidtestAppendComplexKey()
     Tests constructing a complex key by chaining multiple append operations.
public  voidtestAppendDecoratedAttributeKey()
    
public  voidtestAppendDelimiters()
     Tests appending keys that contain delimiters.
public  voidtestAppendDelimitersWithoutEscaping()
     Tests appending keys that contain delimiters when no escpaped delimiter is defined.
public  voidtestAppendIndex()
     Tests appending an index to a key.
public  voidtestAppendNullAttributeKey()
     Tests appending a null attribute key.
public  voidtestAppendWithEscapeFlag()
     Tests calling append with the escape flag.
public  voidtestAttributeKeyWithIndex()
     Tests iterating over an attribute key that has an index.
public  voidtestAttributeName()
     Tests determining an attribute key's name.
public  voidtestConstructAttributeKey()
     Tests constructing keys for attributes.
public  voidtestConstructAttributeKeyWithoutEndMarkers()
     Tests constructing attribute keys when no end markers are defined.
public  voidtestEquals()
     Tests comparing configuration keys.
public  voidtestIsAttributeKey()
     Tests the isAttributeKey() method with several keys.
public  voidtestIsAttributeKeyWithoutEndMarkers()
     Tests if attribute keys are correctly detected if no end markers are set.
public  voidtestIterate()
     Tests to iterate over a simple key.
public  voidtestIterateAlternativeEscapeDelimiter()
     Tests iterating over keys when a different escaped delimiter is used.
public  voidtestIterateAttributeEqualsPropertyDelimiter()
     Tests iteration when the attribute markers equals the property delimiter.
public  voidtestIterateEscapedDelimiters()
     Tests iterating over keys with escaped delimiters.
public  voidtestIterateStrangeKeys()
     Tests iterating over some funny keys.
public  voidtestIterateWithRemove()
     Tests an iteration where the remove() method is called.
public  voidtestIterateWithoutEscapeDelimiter()
     Tests iterating when no escape delimiter is defined.
public  voidtestLength()
     Tests getting and setting the key's length.
public  voidtestSetNullExpressionEngine()
     Tests setting the expression engine to null.
public  voidtestTrim()
     Tests removing delimiters.
public  voidtestTrimLeft()
     Tests removing leading delimiters.
public  voidtestTrimRight()
     Tests removing trailing delimiters.

Field Detail
expressionEngine
DefaultExpressionEngine expressionEngine(Code)
Stores the expression engine of the key to test.



key
DefaultConfigurationKey key(Code)
Stores the object to be tested.





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



testAppend
public void testAppend()(Code)
Tests appending keys.



testAppendAttribute
public void testAppendAttribute()(Code)
Tests appending attribute keys.



testAppendComplexKey
public void testAppendComplexKey()(Code)
Tests constructing a complex key by chaining multiple append operations.



testAppendDecoratedAttributeKey
public void testAppendDecoratedAttributeKey()(Code)
Tests appending an attribute key that is already decorated-



testAppendDelimiters
public void testAppendDelimiters()(Code)
Tests appending keys that contain delimiters.



testAppendDelimitersWithoutEscaping
public void testAppendDelimitersWithoutEscaping()(Code)
Tests appending keys that contain delimiters when no escpaped delimiter is defined.



testAppendIndex
public void testAppendIndex()(Code)
Tests appending an index to a key.



testAppendNullAttributeKey
public void testAppendNullAttributeKey()(Code)
Tests appending a null attribute key.



testAppendWithEscapeFlag
public void testAppendWithEscapeFlag()(Code)
Tests calling append with the escape flag.



testAttributeKeyWithIndex
public void testAttributeKeyWithIndex()(Code)
Tests iterating over an attribute key that has an index.



testAttributeName
public void testAttributeName()(Code)
Tests determining an attribute key's name.



testConstructAttributeKey
public void testConstructAttributeKey()(Code)
Tests constructing keys for attributes.



testConstructAttributeKeyWithoutEndMarkers
public void testConstructAttributeKeyWithoutEndMarkers()(Code)
Tests constructing attribute keys when no end markers are defined. In this test case we use the property delimiter as attribute prefix.



testEquals
public void testEquals()(Code)
Tests comparing configuration keys.



testIsAttributeKey
public void testIsAttributeKey()(Code)
Tests the isAttributeKey() method with several keys.



testIsAttributeKeyWithoutEndMarkers
public void testIsAttributeKeyWithoutEndMarkers()(Code)
Tests if attribute keys are correctly detected if no end markers are set. (In this test case we use the same delimiter for attributes as for simple properties.)



testIterate
public void testIterate()(Code)
Tests to iterate over a simple key.



testIterateAlternativeEscapeDelimiter
public void testIterateAlternativeEscapeDelimiter()(Code)
Tests iterating over keys when a different escaped delimiter is used.



testIterateAttributeEqualsPropertyDelimiter
public void testIterateAttributeEqualsPropertyDelimiter()(Code)
Tests iteration when the attribute markers equals the property delimiter.



testIterateEscapedDelimiters
public void testIterateEscapedDelimiters()(Code)
Tests iterating over keys with escaped delimiters.



testIterateStrangeKeys
public void testIterateStrangeKeys()(Code)
Tests iterating over some funny keys.



testIterateWithRemove
public void testIterateWithRemove()(Code)
Tests an iteration where the remove() method is called. This is not supported.



testIterateWithoutEscapeDelimiter
public void testIterateWithoutEscapeDelimiter()(Code)
Tests iterating when no escape delimiter is defined.



testLength
public void testLength()(Code)
Tests getting and setting the key's length.



testSetNullExpressionEngine
public void testSetNullExpressionEngine()(Code)
Tests setting the expression engine to null. This should not be allowed.



testTrim
public void testTrim()(Code)
Tests removing delimiters.



testTrimLeft
public void testTrimLeft()(Code)
Tests removing leading delimiters.



testTrimRight
public void testTrimRight()(Code)
Tests removing trailing delimiters.



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