Java Doc for StrSubstitutorTest.java in  » Library » Apache-common-lang » org » apache » commons » lang » text » 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 common lang » org.apache.commons.lang.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.lang.text.StrSubstitutorTest

StrSubstitutorTest
public class StrSubstitutorTest extends TestCase (Code)
Test class for StrSubstitutor.
author:
   Oliver Heger
version:
   $Id: StrSubstitutorTest.java 437554 2006-08-28 06:21:41Z bayard $




Method Summary
public static  voidmain(String[] args)
     Main method.
protected  voidsetUp()
    
public static  Testsuite()
     Return a new test suite containing this test case.
protected  voidtearDown()
    
public  voidtestConstructorMapFull()
     Tests constructor.
public  voidtestConstructorMapPrefixSuffix()
     Tests constructor.
public  voidtestConstructorNoArgs()
     Tests constructor.
public  voidtestCyclicReplacement()
     Tests a cyclic replace operation.
public  voidtestGetSetEscape()
     Tests get set.
public  voidtestGetSetPrefix()
     Tests get set.
public  voidtestGetSetSuffix()
     Tests get set.
public  voidtestReplaceAdjacentAtEnd()
     Tests adjacent keys.
public  voidtestReplaceAdjacentAtStart()
     Tests adjacent keys.
public  voidtestReplaceChangedMap()
     Tests key replace changing map after initialization (not recommended).
public  voidtestReplaceComplexEscaping()
     Tests complex escaping.
public  voidtestReplaceEmpty()
     Tests replace with null.
public  voidtestReplaceEmptyKeys()
     Tests when no variable name.
public  voidtestReplaceEscaping()
     Tests escaping.
public  voidtestReplaceIncompletePefix()
     Tests when no incomplete prefix.
public  voidtestReplaceNoPefixNoSuffix()
     Tests when no prefix or suffix.
public  voidtestReplaceNoPrefixSuffix()
     Tests when suffix but no prefix.
public  voidtestReplaceNoVariables()
     Tests replace with no variables.
public  voidtestReplaceNull()
     Tests replace with null.
public  voidtestReplacePartialString_noReplace()
     Tests simple key replace.
public  voidtestReplacePrefixNoSuffix()
     Tests when prefix but no suffix.
public  voidtestReplaceRecursive()
     Tests simple recursive replace.
public  voidtestReplaceSimple()
     Tests simple key replace.
public  voidtestReplaceSolo()
     Tests simple key replace.
public  voidtestReplaceSoloEscaping()
     Tests escaping.
public  voidtestReplaceToIdentical()
     Tests replace creates output same as input.
public  voidtestReplaceUnknownKey()
     Tests unknown key replace.
public  voidtestReplaceWeirdPattens()
     Tests interpolation with weird boundary patterns.
public  voidtestResolveVariable()
     Tests protected.
public  voidtestStaticReplace()
     Tests static.
public  voidtestStaticReplacePrefixSuffix()
     Tests static.
public  voidtestStaticReplaceSystemProperties()
     Tests interpolation with system properties.



Method Detail
main
public static void main(String[] args)(Code)
Main method.
Parameters:
  args - command line arguments, ignored



setUp
protected void setUp() throws Exception(Code)



suite
public static Test suite()(Code)
Return a new test suite containing this test case. a new test suite containing this test case



tearDown
protected void tearDown() throws Exception(Code)



testConstructorMapFull
public void testConstructorMapFull()(Code)
Tests constructor.



testConstructorMapPrefixSuffix
public void testConstructorMapPrefixSuffix()(Code)
Tests constructor.



testConstructorNoArgs
public void testConstructorNoArgs()(Code)
Tests constructor.



testCyclicReplacement
public void testCyclicReplacement()(Code)
Tests a cyclic replace operation. The cycle should be detected and cause an exception to be thrown.



testGetSetEscape
public void testGetSetEscape()(Code)
Tests get set.



testGetSetPrefix
public void testGetSetPrefix()(Code)
Tests get set.



testGetSetSuffix
public void testGetSetSuffix()(Code)
Tests get set.



testReplaceAdjacentAtEnd
public void testReplaceAdjacentAtEnd()(Code)
Tests adjacent keys.



testReplaceAdjacentAtStart
public void testReplaceAdjacentAtStart()(Code)
Tests adjacent keys.



testReplaceChangedMap
public void testReplaceChangedMap()(Code)
Tests key replace changing map after initialization (not recommended).



testReplaceComplexEscaping
public void testReplaceComplexEscaping()(Code)
Tests complex escaping.



testReplaceEmpty
public void testReplaceEmpty()(Code)
Tests replace with null.



testReplaceEmptyKeys
public void testReplaceEmptyKeys()(Code)
Tests when no variable name.



testReplaceEscaping
public void testReplaceEscaping()(Code)
Tests escaping.



testReplaceIncompletePefix
public void testReplaceIncompletePefix()(Code)
Tests when no incomplete prefix.



testReplaceNoPefixNoSuffix
public void testReplaceNoPefixNoSuffix()(Code)
Tests when no prefix or suffix.



testReplaceNoPrefixSuffix
public void testReplaceNoPrefixSuffix()(Code)
Tests when suffix but no prefix.



testReplaceNoVariables
public void testReplaceNoVariables()(Code)
Tests replace with no variables.



testReplaceNull
public void testReplaceNull()(Code)
Tests replace with null.



testReplacePartialString_noReplace
public void testReplacePartialString_noReplace()(Code)
Tests simple key replace.



testReplacePrefixNoSuffix
public void testReplacePrefixNoSuffix()(Code)
Tests when prefix but no suffix.



testReplaceRecursive
public void testReplaceRecursive()(Code)
Tests simple recursive replace.



testReplaceSimple
public void testReplaceSimple()(Code)
Tests simple key replace.



testReplaceSolo
public void testReplaceSolo()(Code)
Tests simple key replace.



testReplaceSoloEscaping
public void testReplaceSoloEscaping()(Code)
Tests escaping.



testReplaceToIdentical
public void testReplaceToIdentical()(Code)
Tests replace creates output same as input.



testReplaceUnknownKey
public void testReplaceUnknownKey()(Code)
Tests unknown key replace.



testReplaceWeirdPattens
public void testReplaceWeirdPattens()(Code)
Tests interpolation with weird boundary patterns.



testResolveVariable
public void testResolveVariable()(Code)
Tests protected.



testStaticReplace
public void testStaticReplace()(Code)
Tests static.



testStaticReplacePrefixSuffix
public void testStaticReplacePrefixSuffix()(Code)
Tests static.



testStaticReplaceSystemProperties
public void testStaticReplaceSystemProperties()(Code)
Tests interpolation with system properties.



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