Java Doc for TestWebXmlMerger.java in  » Testing » jakarta-cactus » org » apache » cactus » integration » ant » deployment » webapp » 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 » Testing » jakarta cactus » org.apache.cactus.integration.ant.deployment.webapp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cactus.integration.ant.deployment.webapp.TestWebXmlMerger

TestWebXmlMerger
final public class TestWebXmlMerger extends TestCase (Code)
Unit tests for WebXmlMerger . TODO: we need more tests for the security sections and the various references
version:
   $Id: TestWebXmlMerger.java 239003 2004-05-31 20:05:27Z vmassol $




Method Summary
public  voidsetUp()
    
public  voidtestMergeMultipleFiltersIntoEmptyDocument()
     Tests whether multiple filters are correctly merged into an empty descriptor.
public  voidtestMergeMultipleServletsIntoEmptyDocument()
     Tests whether multiple servlet in the merge file are correctly inserted into an empty descriptor.
public  voidtestMergeOneContextParamIntoDocumentWithAnotherContextParam()
     Tests whether a single context param is correctly merged into a descriptor that already contains another context param.
public  voidtestMergeOneContextParamIntoDocumentWithSameContextParam()
     Tests whether a single context param in the merge descriptor is ignored because a context param with the same name already exists in the source descriptor.
public  voidtestMergeOneContextParamIntoEmptyDocument()
     Tests whether a single context param is correctly merged into an empty descriptor.
public  voidtestMergeOneEjbRefIntoEmptyDocument()
     Tests whether a single EJB reference is correctly inserted into an empty descriptor.
public  voidtestMergeOneFilterIntoDocumentWithAnotherFilter()
     Tests whether a single filter is correctly merged into a descriptor that already contains another filter.
public  voidtestMergeOneFilterIntoDocumentWithMultipleFilters()
     Tests whether a single filter is correctly merged into a descriptor that already contains multiple other filter definitions.
public  voidtestMergeOneFilterIntoDocumentWithSameFilter()
     Tests whether a single filter in the merge descriptor is ignored because a filter with the same name already exists in the source descriptor.
public  voidtestMergeOneFilterIntoDocumentWithSameFilterAndParam()
     Tests whether a filter initialization parameter is merged into the descriptor.
public  voidtestMergeOneFilterIntoEmptyDocument()
     Tests whether a single filter is correctly merged into an empty descriptor.
public  voidtestMergeOneFilterWithMultipleMappingsIntoEmptyDocument()
     Tests wether a single filter with multiple mappings is correctly merged into an empty descriptor.
public  voidtestMergeOneFilterWithOneMappingIntoEmptyDocument()
     Tests whether a filter with one mapping is correctly merged into an empty descriptor.
public  voidtestMergeOneServletIntoDocumentWithAnotherServlet()
     Tests whether a single servlet is correctly merged into a descriptor that already contains the definition of an other servlet.
public  voidtestMergeOneServletIntoDocumentWithMultipleServlets()
     Tests whether a single servlet is correctly merged into a descriptor with multiple servlets.
public  voidtestMergeOneServletIntoDocumentWithSameServlet()
     Tests whether a single servlet is correctly merged into a descriptor that already contains the definition of a servlet with the same name.
public  voidtestMergeOneServletIntoDocumentWithSameServletAndParam()
     Tets whether a servlet with an initialization parameter is correctly merged into a descriptor that contains the definition of a servlet with the same name.
public  voidtestMergeOneServletIntoEmptyDocument()
     Tests whether a single servlet is correctly merged into an empty descriptor.
public  voidtestMergeOneServletWithMultipleMappingsIntoEmptyDocument()
     Tests whether a single servlet with multiple mappings is correctly inserted into an empty descriptor.
public  voidtestMergeOneServletWithOneMappingIntoEmptyDocument()
     Tests whether a single servlet with one mapping is correctly inserted into an empty descriptor.
public  voidtestMergeSecurityRoleIntoDocumentWithSameRole()
     Tests whether a single security role is ignored when the source descriptor already contains a role with the same name.
public  voidtestMergeSecurityRoleIntoEmptyDocument()
     Tests whether a single security role is correctly inserted into an empty descriptor.
public  voidtestMergingServletWithInitParamsThatIsAlreadyDefined()
     Verifies that servlet init parameters are added after the load-on-startup element of an already existing servlet definition.



Method Detail
setUp
public void setUp() throws ParserConfigurationException(Code)

See Also:   TestCase.setUp



testMergeMultipleFiltersIntoEmptyDocument
public void testMergeMultipleFiltersIntoEmptyDocument() throws Exception(Code)
Tests whether multiple filters are correctly merged into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeMultipleServletsIntoEmptyDocument
public void testMergeMultipleServletsIntoEmptyDocument() throws Exception(Code)
Tests whether multiple servlet in the merge file are correctly inserted into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneContextParamIntoDocumentWithAnotherContextParam
public void testMergeOneContextParamIntoDocumentWithAnotherContextParam() throws Exception(Code)
Tests whether a single context param is correctly merged into a descriptor that already contains another context param.
throws:
  Exception - If an unexpected error occurs



testMergeOneContextParamIntoDocumentWithSameContextParam
public void testMergeOneContextParamIntoDocumentWithSameContextParam() throws Exception(Code)
Tests whether a single context param in the merge descriptor is ignored because a context param with the same name already exists in the source descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneContextParamIntoEmptyDocument
public void testMergeOneContextParamIntoEmptyDocument() throws Exception(Code)
Tests whether a single context param is correctly merged into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneEjbRefIntoEmptyDocument
public void testMergeOneEjbRefIntoEmptyDocument() throws Exception(Code)
Tests whether a single EJB reference is correctly inserted into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterIntoDocumentWithAnotherFilter
public void testMergeOneFilterIntoDocumentWithAnotherFilter() throws Exception(Code)
Tests whether a single filter is correctly merged into a descriptor that already contains another filter.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterIntoDocumentWithMultipleFilters
public void testMergeOneFilterIntoDocumentWithMultipleFilters() throws Exception(Code)
Tests whether a single filter is correctly merged into a descriptor that already contains multiple other filter definitions.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterIntoDocumentWithSameFilter
public void testMergeOneFilterIntoDocumentWithSameFilter() throws Exception(Code)
Tests whether a single filter in the merge descriptor is ignored because a filter with the same name already exists in the source descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterIntoDocumentWithSameFilterAndParam
public void testMergeOneFilterIntoDocumentWithSameFilterAndParam() throws Exception(Code)
Tests whether a filter initialization parameter is merged into the descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterIntoEmptyDocument
public void testMergeOneFilterIntoEmptyDocument() throws Exception(Code)
Tests whether a single filter is correctly merged into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterWithMultipleMappingsIntoEmptyDocument
public void testMergeOneFilterWithMultipleMappingsIntoEmptyDocument() throws Exception(Code)
Tests wether a single filter with multiple mappings is correctly merged into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneFilterWithOneMappingIntoEmptyDocument
public void testMergeOneFilterWithOneMappingIntoEmptyDocument() throws Exception(Code)
Tests whether a filter with one mapping is correctly merged into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletIntoDocumentWithAnotherServlet
public void testMergeOneServletIntoDocumentWithAnotherServlet() throws Exception(Code)
Tests whether a single servlet is correctly merged into a descriptor that already contains the definition of an other servlet.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletIntoDocumentWithMultipleServlets
public void testMergeOneServletIntoDocumentWithMultipleServlets() throws Exception(Code)
Tests whether a single servlet is correctly merged into a descriptor with multiple servlets.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletIntoDocumentWithSameServlet
public void testMergeOneServletIntoDocumentWithSameServlet() throws Exception(Code)
Tests whether a single servlet is correctly merged into a descriptor that already contains the definition of a servlet with the same name.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletIntoDocumentWithSameServletAndParam
public void testMergeOneServletIntoDocumentWithSameServletAndParam() throws Exception(Code)
Tets whether a servlet with an initialization parameter is correctly merged into a descriptor that contains the definition of a servlet with the same name.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletIntoEmptyDocument
public void testMergeOneServletIntoEmptyDocument() throws Exception(Code)
Tests whether a single servlet is correctly merged into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletWithMultipleMappingsIntoEmptyDocument
public void testMergeOneServletWithMultipleMappingsIntoEmptyDocument() throws Exception(Code)
Tests whether a single servlet with multiple mappings is correctly inserted into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeOneServletWithOneMappingIntoEmptyDocument
public void testMergeOneServletWithOneMappingIntoEmptyDocument() throws Exception(Code)
Tests whether a single servlet with one mapping is correctly inserted into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergeSecurityRoleIntoDocumentWithSameRole
public void testMergeSecurityRoleIntoDocumentWithSameRole() throws Exception(Code)
Tests whether a single security role is ignored when the source descriptor already contains a role with the same name.
throws:
  Exception - If an unexpected error occurs



testMergeSecurityRoleIntoEmptyDocument
public void testMergeSecurityRoleIntoEmptyDocument() throws Exception(Code)
Tests whether a single security role is correctly inserted into an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testMergingServletWithInitParamsThatIsAlreadyDefined
public void testMergingServletWithInitParamsThatIsAlreadyDefined() throws Exception(Code)
Verifies that servlet init parameters are added after the load-on-startup element of an already existing servlet definition.
throws:
  Exception - If an unexpected error occurs



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