Java Doc for StringPropertyReplacerUnitTestCase.java in  » EJB-Server-JBoss-4.2.1 » testsuite » org » jboss » test » util » test » 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 » EJB Server JBoss 4.2.1 » testsuite » org.jboss.test.util.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.test.util.test.StringPropertyReplacerUnitTestCase

StringPropertyReplacerUnitTestCase
public class StringPropertyReplacerUnitTestCase extends JBossTestCase (Code)
Unit tests for the StringPropertyReplacer utility class
See Also:   org.jboss.util.StringPropertyReplacer
author:
   Scott.Stark@jboss.org
author:
   Dimitris.Andreadis@jboss.org
version:
   $Revision: 57211 $



Constructor Summary
public  StringPropertyReplacerUnitTestCase(String name)
    

Method Summary
public  voidtestDefaultValueNonSystemPropReplacement()
     Test the specified default value is used when the non-system property could not be replaced and ignored when the non-property is replaced.
public  voidtestDefaultValueSystemPropReplacement()
     Test the specified default value is used when the system property could not be replaced, and ignored when the system property is replaced.
public  voidtestEmptyDefaultNonSystemPropReplacement()
    
public  voidtestFilePropReplacement()
    
public  voidtestNonSystemPropReplacement()
    
public  voidtestPathologicalMissingPrimaryProperty()
     Test that a composite property gets resolved when the primary property is missing.
public  voidtestPathologicalMissingPrimaryPropertyWithDefault()
     Test that a composite property with a default gets resolved when the primary property is missing.
public  voidtestPathologicalMissingSecondaryProperty()
     Test that a composite property gets resolved when the secondary property is missing.
public  voidtestPathologicalMissingSecondaryPropertyWithDefault()
     Test that a composite property with a default gets resolved when the secondary property is missing.
public  voidtestPathologicalNonSystemPropReplacement()
    
public  voidtestPropReplacement()
    
public  voidtestSecondaryNonSystemPropReplacementWithDefault()
    
public  voidtestSecondarySystemPropReplacement()
     Test the scenario where a primary and a secondary system property is specified.


Constructor Detail
StringPropertyReplacerUnitTestCase
public StringPropertyReplacerUnitTestCase(String name)(Code)




Method Detail
testDefaultValueNonSystemPropReplacement
public void testDefaultValueNonSystemPropReplacement() throws Exception(Code)
Test the specified default value is used when the non-system property could not be replaced and ignored when the non-property is replaced.



testDefaultValueSystemPropReplacement
public void testDefaultValueSystemPropReplacement() throws Exception(Code)
Test the specified default value is used when the system property could not be replaced, and ignored when the system property is replaced.



testEmptyDefaultNonSystemPropReplacement
public void testEmptyDefaultNonSystemPropReplacement() throws Exception(Code)
Test that with an empty default value we get the property evaluating to an empty string "", when the property is undefined



testFilePropReplacement
public void testFilePropReplacement() throws Exception(Code)
Test that ${/} and ${:} refs are replaced with
throws:
  Exception -



testNonSystemPropReplacement
public void testNonSystemPropReplacement() throws Exception(Code)
Tests of the ${x} property replacement with a non-System Properties
throws:
  Exception -



testPathologicalMissingPrimaryProperty
public void testPathologicalMissingPrimaryProperty() throws Exception(Code)
Test that a composite property gets resolved when the primary property is missing.



testPathologicalMissingPrimaryPropertyWithDefault
public void testPathologicalMissingPrimaryPropertyWithDefault() throws Exception(Code)
Test that a composite property with a default gets resolved when the primary property is missing.



testPathologicalMissingSecondaryProperty
public void testPathologicalMissingSecondaryProperty() throws Exception(Code)
Test that a composite property gets resolved when the secondary property is missing.



testPathologicalMissingSecondaryPropertyWithDefault
public void testPathologicalMissingSecondaryPropertyWithDefault() throws Exception(Code)
Test that a composite property with a default gets resolved when the secondary property is missing.



testPathologicalNonSystemPropReplacement
public void testPathologicalNonSystemPropReplacement() throws Exception(Code)
Test that we first check if the property is set before trying to apply a default or a resolving secondary property



testPropReplacement
public void testPropReplacement() throws Exception(Code)
Tests of the ${x} property replacement
throws:
  Exception -



testSecondaryNonSystemPropReplacementWithDefault
public void testSecondaryNonSystemPropReplacementWithDefault() throws Exception(Code)
Test the scenario where a primary and a secondary non-system property, plus a default value are specified



testSecondarySystemPropReplacement
public void testSecondarySystemPropReplacement() throws Exception(Code)
Test the scenario where a primary and a secondary system property is specified.



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