Java Doc for TestPropertiesConfiguration.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.TestPropertiesConfiguration

TestPropertiesConfiguration
public class TestPropertiesConfiguration extends TestCase (Code)
Test for loading and saving properties files.
version:
   $Id: TestPropertiesConfiguration.java 439648 2006-09-02 20:42:10Z oheger $

Inner Class :static class DummyLayout extends PropertiesConfigurationLayout



Method Summary
protected  voidsetUp()
    
public  voidtestAppend()
     Tests if properties can be appended by simply calling load() another time.
public  voidtestChangingDefaultListDelimiter()
    
public  voidtestChangingListDelimiter()
    
public  voidtestClone()
     Tests whether a properties configuration can be successfully cloned.
public  voidtestCloneNullLayout()
     Tests the clone() method when no layout object exists yet.
public  voidtestComment()
     Test if the lines starting with # or ! are properly ignored.
public  voidtestDisableListDelimiter()
    
public  voidtestEmpty()
     Tests that empty properties are treated as the empty string (rather than as null).
public  voidtestEscapedKey()
    
public  voidtestEscapedKeyValueSeparator()
     Check that key/value separators can be part of a key.
public  voidtestGetLayout()
     Tests accessing the layout object.
public  voidtestGetStringWithEscapedChars()
    
public  voidtestGetStringWithEscapedComma()
    
public  voidtestInMemoryCreatedSave()
    
public  voidtestIncludeInSubDir()
     Tests including properties when they are loaded from a nested directory structure.
public  voidtestIsCommentLine()
     Tests whether comment lines are correctly detected.
public  voidtestKeyValueSeparators()
     Test all acceptable key/value separators ('=', ':' or white spaces).
public  voidtestLineSeparator()
     Tests whether the correct line separator is used.
public  voidtestList()
     Tests List parsing.
public  voidtestLoad()
    
public  voidtestLoadFromFile()
    
public  voidtestLoadInclude()
    
public  voidtestLoadIncludeFromClassPath()
     Tests if included files are loaded when the source lies in the class path.
public  voidtestLoadUnexistingFile()
    
public  voidtestLoadViaProperty()
    
public  voidtestLoadViaPropertyWithBasePath()
    
public  voidtestLoadViaPropertyWithBasePath2()
    
public  voidtestLoadWithAutoSave()
     Tests to load a file with enabled auto save mode.
public  voidtestLoadWithAutoSaveAndAdd()
     Tests the auto save functionality when a new property is added using the addProperty() method.
public  voidtestLoadWithAutoSaveAndClear()
     Tests the auto save functionality when a property is removed.
public  voidtestLoadWithAutoSaveAndSetExisting()
     Tests the auto save functionality when an existing property is modified.
public  voidtestLoadWithAutoSaveAndSetNew()
     Tests the auto save functionality when a new property is added using the setProperty() method.
public  voidtestMixedArray()
    
public  voidtestMultilines()
    
public  voidtestNewLineEscaping()
     Tests escaping of an end of line with a backslash.
public  voidtestPropertyLoaded()
     Tests the propertyLoaded() method for a simple property.
public  voidtestPropertyLoadedInclude()
     Tests the propertyLoaded() method for an include property.
public  voidtestPropertyLoadedIncludeNotAllowed()
     Tests propertyLoaded() for an include property, when includes are disabled.
public  voidtestReentrantReload()
     Tests what happens if a reloading strategy's reloadingRequired() implementation accesses methods of the configuration that in turn cause a reload.
public  voidtestReference()
    
public  voidtestSave()
    
public  voidtestSaveMissingFilename()
    
public  voidtestSaveWithBasePath()
     Tests if the base path is taken into account by the save() method.
public  voidtestSetInclude()
    
public  voidtestUnescapeJava()
    



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



testAppend
public void testAppend() throws Exception(Code)
Tests if properties can be appended by simply calling load() another time.



testChangingDefaultListDelimiter
public void testChangingDefaultListDelimiter() throws Exception(Code)



testChangingListDelimiter
public void testChangingListDelimiter() throws Exception(Code)



testClone
public void testClone() throws ConfigurationException(Code)
Tests whether a properties configuration can be successfully cloned. It is especially checked whether the layout object is taken into account.



testCloneNullLayout
public void testCloneNullLayout()(Code)
Tests the clone() method when no layout object exists yet.



testComment
public void testComment()(Code)
Test if the lines starting with # or ! are properly ignored.



testDisableListDelimiter
public void testDisableListDelimiter() throws Exception(Code)



testEmpty
public void testEmpty() throws Exception(Code)
Tests that empty properties are treated as the empty string (rather than as null).



testEscapedKey
public void testEscapedKey() throws Exception(Code)



testEscapedKeyValueSeparator
public void testEscapedKeyValueSeparator()(Code)
Check that key/value separators can be part of a key.



testGetLayout
public void testGetLayout()(Code)
Tests accessing the layout object.



testGetStringWithEscapedChars
public void testGetStringWithEscapedChars()(Code)



testGetStringWithEscapedComma
public void testGetStringWithEscapedComma()(Code)



testInMemoryCreatedSave
public void testInMemoryCreatedSave() throws Exception(Code)



testIncludeInSubDir
public void testIncludeInSubDir() throws ConfigurationException(Code)
Tests including properties when they are loaded from a nested directory structure.



testIsCommentLine
public void testIsCommentLine()(Code)
Tests whether comment lines are correctly detected.



testKeyValueSeparators
public void testKeyValueSeparators()(Code)
Test all acceptable key/value separators ('=', ':' or white spaces).



testLineSeparator
public void testLineSeparator() throws ConfigurationException(Code)
Tests whether the correct line separator is used.



testList
public void testList() throws Exception(Code)
Tests List parsing.



testLoad
public void testLoad() throws Exception(Code)



testLoadFromFile
public void testLoadFromFile() throws Exception(Code)



testLoadInclude
public void testLoadInclude() throws Exception(Code)
test if includes properties get loaded too



testLoadIncludeFromClassPath
public void testLoadIncludeFromClassPath() throws ConfigurationException(Code)
Tests if included files are loaded when the source lies in the class path.



testLoadUnexistingFile
public void testLoadUnexistingFile()(Code)



testLoadViaProperty
public void testLoadViaProperty() throws Exception(Code)



testLoadViaPropertyWithBasePath
public void testLoadViaPropertyWithBasePath() throws Exception(Code)



testLoadViaPropertyWithBasePath2
public void testLoadViaPropertyWithBasePath2() throws Exception(Code)



testLoadWithAutoSave
public void testLoadWithAutoSave() throws Exception(Code)
Tests to load a file with enabled auto save mode.



testLoadWithAutoSaveAndAdd
public void testLoadWithAutoSaveAndAdd() throws Exception(Code)
Tests the auto save functionality when a new property is added using the addProperty() method.



testLoadWithAutoSaveAndClear
public void testLoadWithAutoSaveAndClear() throws Exception(Code)
Tests the auto save functionality when a property is removed.



testLoadWithAutoSaveAndSetExisting
public void testLoadWithAutoSaveAndSetExisting() throws Exception(Code)
Tests the auto save functionality when an existing property is modified.



testLoadWithAutoSaveAndSetNew
public void testLoadWithAutoSaveAndSetNew() throws Exception(Code)
Tests the auto save functionality when a new property is added using the setProperty() method.



testMixedArray
public void testMixedArray()(Code)



testMultilines
public void testMultilines()(Code)



testNewLineEscaping
public void testNewLineEscaping()(Code)
Tests escaping of an end of line with a backslash.



testPropertyLoaded
public void testPropertyLoaded() throws ConfigurationException(Code)
Tests the propertyLoaded() method for a simple property.



testPropertyLoadedInclude
public void testPropertyLoadedInclude() throws ConfigurationException(Code)
Tests the propertyLoaded() method for an include property.



testPropertyLoadedIncludeNotAllowed
public void testPropertyLoadedIncludeNotAllowed() throws ConfigurationException(Code)
Tests propertyLoaded() for an include property, when includes are disabled.



testReentrantReload
public void testReentrantReload()(Code)
Tests what happens if a reloading strategy's reloadingRequired() implementation accesses methods of the configuration that in turn cause a reload.



testReference
public void testReference() throws Exception(Code)
Tests that references to other properties work



testSave
public void testSave() throws Exception(Code)



testSaveMissingFilename
public void testSaveMissingFilename()(Code)



testSaveWithBasePath
public void testSaveWithBasePath() throws Exception(Code)
Tests if the base path is taken into account by the save() method.
throws:
  Exception - if an error occurs



testSetInclude
public void testSetInclude() throws Exception(Code)



testUnescapeJava
public void testUnescapeJava()(Code)



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