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

TestWebXml
final public class TestWebXml extends TestCase (Code)
Unit tests for WebXml .
version:
   $Id: TestWebXml.java 239138 2005-02-11 09:17:14Z vmassol $




Method Summary
public  ElementcreateContextParamElement(Document theDocument, String theParamName, String theParamValue)
     Create a context-param element containing the specified text in the child elements.
public  ElementcreateFilterElement(Document theDocument, String theFilterName, String theFilterClass)
     Create a filter element containing the specified text in the child elements.
public  ElementcreateServletElement(Document theDocument, String theServletName, String theServletClass)
     Create a servlet element containing the specified text in the child elements.
public  voidsetUp()
    
public  voidtestAddContextParamToDocumentWithAnotherContextParam()
     Tests whether a single context param is correctly inserted into a descriptor that already contains an other context param definition.
public  voidtestAddContextParamToDocumentWithTheSameContextParam()
     Tests whether trying to add a context param to a descriptor that already contains a context param definition with the same name results in an exception.
public  voidtestAddContextParamToEmptyDocument()
     Tests whether a single context-param is correctly inserted into an empty descriptor.
public  voidtestAddFilterToDocumentWithAnotherFilter()
     Tests whether a single filter is correctly inserted into a descriptor that already contains an other filter definition.
public  voidtestAddFilterToDocumentWithTheSameFilter()
     Tests whether trying to add a filter to a descriptor that already contains a filter definition with the same name results in a exception.
public  voidtestAddFilterToEmptyDocument()
     Tests whether a single filter is correctly inserted into an empty descriptor.
public  voidtestAddFilterWithNameAndClass()
     Tests whether a single filter can be added using the method that takes a string for the filter name and a string for the filter class.
public  voidtestAddMultipleFilterInitParams()
     Tests whether multiple initialization parameter can be added to a filter definition.
public  voidtestAddMultipleServletInitParams()
     Tests whether multiple initialization parameters are correctly added to an existing servlet definition.
public  voidtestAddOneFilterInitParam()
     Tests whether a single initialization parameter can be added to a filter definition.
public  voidtestAddOneServletInitParam()
     Tests whether a single initialization parameter is correctly added to an existing servlet definition.
public  voidtestAddSecurityConstraint()
     Tests whether a security-constraint with no roles is successfully added to an empty descriptor.
public  voidtestAddSecurityConstraintWithRoles()
     Tests whether a security-constraint with two roles is successfully added to an empty descriptor.
public  voidtestAddServletRunAsRole()
    
public  voidtestAddServletToDocumentWithAnotherServlet()
     Tests whether a single servlet can be added to a descriptor already containing an other servlet.
public  voidtestAddServletToDocumentWithTheSameServlet()
     Tests whether trying to add a servlet to a descriptor that already contains a servlet with the same name results in an exception.
public  voidtestAddServletToEmptyDocument()
     Tests whether a single servlet can be added to an empty descriptor.
public  voidtestAddServletWithNameAndClass()
     Tests whether a single servlet can be added using the method that takes a string for the servlet name and a string for the servlet class.
public  voidtestAddServletWithNameAndJspFile()
     Tests whether a single servlet can be added using the method that takes a string for the servlet name and a string for the JSP file.
public  voidtestConstructionWithNullDocument()
     Tests whether the construction of a WebXml object with a null parameter for the DOM document throws a NullPointerException.
public  voidtestElementOrderFilterBeforeServlet()
     Tests whether a filter is inserted before a servlet element.
public  voidtestElementOrderFilterBeforeServletWithComment()
     Tests whether a filter is inserted before the comment node preceding a servlet definition.
public  voidtestElementOrderServletAfterFilter()
     Tests whether a servlet is inserted after a filter.
public  voidtestElementOrderServletAfterFilterWithComment()
     Tests whether a servlet is inserted after a filter that is preceded by a comment node.
public  voidtestGetFilterElementWithOneFilter()
     Tests whether a DOM element representing a single filter definition can be correctly retrieved from a descriptor containing only that filter.
public  voidtestGetFilterMappingsWithFilter()
     Tests whether a filter-mapping is correctly retrieved from a descriptor.
public  voidtestGetFilterMappingsWithMultipleMappings()
     Tests whether multiple filter-mappings are correctly retrieved from a descriptor.
public  voidtestGetFilterMappingsWithOneMapping()
     Tests whether a filter-mapping is correctly retrieved from a descriptor.
public  voidtestGetFilterNames()
     Tests whether the filter names are retrieved in the expected order.
public  voidtestGetFilterNamesForClassWithMultipleFilters()
     Tests whether a retrieving the filter names by the name of the class implementing the filter works correctly for a descriptor with multiple filter definitions.
public  voidtestGetFilterNamesForClassWithSingleFilter()
     Tests whether a retrieving a filter name by the name of the class implementing the filter works correctly for a descriptor with a single filter definition.
public  voidtestGetLoginConfig()
     Tests whether the login-config element can be correctly retrieved.
public  voidtestGetLoginConfigAuthMethod()
     Tests retrieving the authentication method from a descriptor.
public  voidtestGetLoginConfigEmpty()
     Tests whether retrieving the login-config from an empty descriptor returns null.
public  voidtestGetMutlipleSecurityConstraints()
     Tests whether multiple security-constraint elements are returned in the expected order.
public  voidtestGetMutlipleSecurityRoles()
     Tests whether multiple security-role elements are correctly retrieved in the expected order.
public  voidtestGetServletElementWithOneServlet()
     Tests whether a servlet element is correctly retrieved from a descriptor containing only one servlet definition.
public  voidtestGetServletMappingsWithMultipleMappings()
     Tests whether multiple servlet mappings are correctly retrieved from a descriptor.
public  voidtestGetServletMappingsWithOneMapping()
     Tests whether a single serrvlet-mapping is correctly retrieved from a descriptor.
public  voidtestGetServletNames()
     Tests whether the names of the servlets defined in a descriptor are correctly returned in the expected order.
public  voidtestGetServletNamesForClassWithMultipleServlets()
     Tests whether a retrieving the servlet names by the name of the class implementing the servlet works correctly for a descriptor with multiple servlet definitions.
public  voidtestGetServletNamesForClassWithSingleServlet()
     Tests whether a retrieving a servlet name by the name of the class implementing the servlet works correctly for a descriptor with a single servlet definition.
public  voidtestGetServletNamesForJspFileWithMultipleServlets()
     Tests whether a retrieving the servlet names by the path of the JSP file implementing the servlet works correctly for a descriptor with multiple servlet definitions.
public  voidtestGetServletNamesForJspFileWithSingleServlet()
     Tests whether a retrieving a servlet name by the path of the JSP file implementing the servlet works correctly for a descriptor with a single servlet definition.
public  voidtestGetServletRunAsRole()
    
public  voidtestGetSingleSecurityConstraint()
     Tests whether a single security-constraint element in the descriptor is correctly retrieved.
public  voidtestGetSingleSecurityRole()
     Tests whether a single security-role element is correctly retrieved.
public  voidtestGetVersion22()
     Tests whether a servlet API version 2.2 descriptor is correctly detected.
public  voidtestGetVersion23()
     Tests whether a servlet API version 2.3 descriptor is correctly detected.
public  voidtestGetVersionUnknown()
     Tests whether WebXml#getVersion returns null when the public ID of the DOCTYPE is not recognized.
public  voidtestGetVersionWithoutDoctype()
     Tests whether WebXml#getVersion returns null when the DOCTYPE is missing.
public  voidtestHasFilterWithMultipleFilters()
     Tests whether WebXml.hasFilter returns the correct values for a descriptor containing multiple filter definitions.
public  voidtestHasFilterWithNullName()
     Tests whether calling WebXml.hasFilter with null as filter name parameter results in a NullPointerException being thrown.
public  voidtestHasFilterWithOneFilter()
     Tests whether WebXml.hasFilter returns the correct value for a descriptor containing one filter definition.
public  voidtestHasLoginConfig()
     Tests whether checking a descriptor with a login configuration for a login configuration results in true.
public  voidtestHasLoginConfigEmpty()
     Tests whether checking an empty descriptor for a login configuration results in false.
public  voidtestHasSecurityConstraintEmpty()
     Tests whether checking an empty descriptor for some security constraint results in false.
public  voidtestHasSecurityRoleEmpty()
     Tests whether checking an empty descriptor for some security roles results in false.
public  voidtestHasServletWithMultipleServlets()
     Tests whether WebXml.hasServlet reports the correct values for a descriptor containing multiple servlet definitions.
public  voidtestHasServletWithNullName()
     Tests whether calling WebXml.hasServlet with a null parameter as servlet name throws a NullPointerException.
public  voidtestHasServletWithOneServlet()
     Tests whether WebXml.hasServlet reports the correct values for a descriptor containing a single servlet definition.
public  voidtestSetLoginConfigAdding()
     Tests retrieving the authentication method from a descriptor.
public  voidtestSetLoginConfigReplacing()
     Tests retrieving the authentication method from a descriptor.



Method Detail
createContextParamElement
public Element createContextParamElement(Document theDocument, String theParamName, String theParamValue)(Code)
Create a context-param element containing the specified text in the child elements.
Parameters:
  theDocument - The DOM document
Parameters:
  theParamName - The parameter name
Parameters:
  theParamValue - The parameter value The created element



createFilterElement
public Element createFilterElement(Document theDocument, String theFilterName, String theFilterClass)(Code)
Create a filter element containing the specified text in the child elements.
Parameters:
  theDocument - The DOM document
Parameters:
  theFilterName - The name of the filter
Parameters:
  theFilterClass - The name of the filter implementation class The created element



createServletElement
public Element createServletElement(Document theDocument, String theServletName, String theServletClass)(Code)
Create a servlet element containing the specified text in the child elements.
Parameters:
  theDocument - The DOM document
Parameters:
  theServletName - The name of the servlet
Parameters:
  theServletClass - The name of the servlet implementation class The created element



setUp
public void setUp() throws ParserConfigurationException(Code)

See Also:   TestCase.setUp



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



testAddContextParamToDocumentWithTheSameContextParam
public void testAddContextParamToDocumentWithTheSameContextParam() throws Exception(Code)
Tests whether trying to add a context param to a descriptor that already contains a context param definition with the same name results in an exception.
throws:
  Exception - If an unexpected error occurs



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



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



testAddFilterToDocumentWithTheSameFilter
public void testAddFilterToDocumentWithTheSameFilter() throws Exception(Code)
Tests whether trying to add a filter to a descriptor that already contains a filter definition with the same name results in a exception.
throws:
  Exception - If an unexpected error occurs



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



testAddFilterWithNameAndClass
public void testAddFilterWithNameAndClass() throws Exception(Code)
Tests whether a single filter can be added using the method that takes a string for the filter name and a string for the filter class.
throws:
  Exception - If an unexpected error occurs



testAddMultipleFilterInitParams
public void testAddMultipleFilterInitParams() throws Exception(Code)
Tests whether multiple initialization parameter can be added to a filter definition.
throws:
  Exception - If an unexpected error occurs



testAddMultipleServletInitParams
public void testAddMultipleServletInitParams() throws Exception(Code)
Tests whether multiple initialization parameters are correctly added to an existing servlet definition.
throws:
  Exception - If an unexpected error occurs



testAddOneFilterInitParam
public void testAddOneFilterInitParam() throws Exception(Code)
Tests whether a single initialization parameter can be added to a filter definition.
throws:
  Exception - If an unexpected error occurs



testAddOneServletInitParam
public void testAddOneServletInitParam() throws Exception(Code)
Tests whether a single initialization parameter is correctly added to an existing servlet definition.
throws:
  Exception - If an unexpected error occurs



testAddSecurityConstraint
public void testAddSecurityConstraint() throws Exception(Code)
Tests whether a security-constraint with no roles is successfully added to an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testAddSecurityConstraintWithRoles
public void testAddSecurityConstraintWithRoles() throws Exception(Code)
Tests whether a security-constraint with two roles is successfully added to an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testAddServletRunAsRole
public void testAddServletRunAsRole() throws Exception(Code)
Tests that a run-as role-name can be added to a servlet
throws:
  Exception - If an unexpected error occurs



testAddServletToDocumentWithAnotherServlet
public void testAddServletToDocumentWithAnotherServlet() throws Exception(Code)
Tests whether a single servlet can be added to a descriptor already containing an other servlet.
throws:
  Exception - If an unexpected error occurs



testAddServletToDocumentWithTheSameServlet
public void testAddServletToDocumentWithTheSameServlet() throws Exception(Code)
Tests whether trying to add a servlet to a descriptor that already contains a servlet with the same name results in an exception.
throws:
  Exception - If an unexpected error occurs



testAddServletToEmptyDocument
public void testAddServletToEmptyDocument() throws Exception(Code)
Tests whether a single servlet can be added to an empty descriptor.
throws:
  Exception - If an unexpected error occurs



testAddServletWithNameAndClass
public void testAddServletWithNameAndClass() throws Exception(Code)
Tests whether a single servlet can be added using the method that takes a string for the servlet name and a string for the servlet class.
throws:
  Exception - If an unexpected error occurs



testAddServletWithNameAndJspFile
public void testAddServletWithNameAndJspFile() throws Exception(Code)
Tests whether a single servlet can be added using the method that takes a string for the servlet name and a string for the JSP file.
throws:
  Exception - If an unexpected error occurs



testConstructionWithNullDocument
public void testConstructionWithNullDocument() throws Exception(Code)
Tests whether the construction of a WebXml object with a null parameter for the DOM document throws a NullPointerException.
throws:
  Exception - If an unexpected error occurs



testElementOrderFilterBeforeServlet
public void testElementOrderFilterBeforeServlet() throws Exception(Code)
Tests whether a filter is inserted before a servlet element.
throws:
  Exception - If an unexpected error occurs



testElementOrderFilterBeforeServletWithComment
public void testElementOrderFilterBeforeServletWithComment() throws Exception(Code)
Tests whether a filter is inserted before the comment node preceding a servlet definition.
throws:
  Exception - If an unexpected error occurs



testElementOrderServletAfterFilter
public void testElementOrderServletAfterFilter() throws Exception(Code)
Tests whether a servlet is inserted after a filter.
throws:
  Exception - If an unexpected error occurs



testElementOrderServletAfterFilterWithComment
public void testElementOrderServletAfterFilterWithComment() throws Exception(Code)
Tests whether a servlet is inserted after a filter that is preceded by a comment node.
throws:
  Exception - If an unexpected error occurs



testGetFilterElementWithOneFilter
public void testGetFilterElementWithOneFilter() throws Exception(Code)
Tests whether a DOM element representing a single filter definition can be correctly retrieved from a descriptor containing only that filter.
throws:
  Exception - If an unexpected error occurs



testGetFilterMappingsWithFilter
public void testGetFilterMappingsWithFilter() throws Exception(Code)
Tests whether a filter-mapping is correctly retrieved from a descriptor.
throws:
  Exception - If an unexpected error occurs



testGetFilterMappingsWithMultipleMappings
public void testGetFilterMappingsWithMultipleMappings() throws Exception(Code)
Tests whether multiple filter-mappings are correctly retrieved from a descriptor.
throws:
  Exception - If an unexpected error occurs



testGetFilterMappingsWithOneMapping
public void testGetFilterMappingsWithOneMapping() throws Exception(Code)
Tests whether a filter-mapping is correctly retrieved from a descriptor.
throws:
  Exception - If an unexpected error occurs



testGetFilterNames
public void testGetFilterNames() throws Exception(Code)
Tests whether the filter names are retrieved in the expected order.
throws:
  Exception - If an unexpected error occurs



testGetFilterNamesForClassWithMultipleFilters
public void testGetFilterNamesForClassWithMultipleFilters() throws Exception(Code)
Tests whether a retrieving the filter names by the name of the class implementing the filter works correctly for a descriptor with multiple filter definitions.
throws:
  Exception - If an unexpected error occurs



testGetFilterNamesForClassWithSingleFilter
public void testGetFilterNamesForClassWithSingleFilter() throws Exception(Code)
Tests whether a retrieving a filter name by the name of the class implementing the filter works correctly for a descriptor with a single filter definition.
throws:
  Exception - If an unexpected error occurs



testGetLoginConfig
public void testGetLoginConfig() throws Exception(Code)
Tests whether the login-config element can be correctly retrieved.
throws:
  Exception - If an unexpected error occurs



testGetLoginConfigAuthMethod
public void testGetLoginConfigAuthMethod() throws Exception(Code)
Tests retrieving the authentication method from a descriptor.
throws:
  Exception - If an unexpected error occurs



testGetLoginConfigEmpty
public void testGetLoginConfigEmpty() throws Exception(Code)
Tests whether retrieving the login-config from an empty descriptor returns null.
throws:
  Exception - If an unexpected error occurs



testGetMutlipleSecurityConstraints
public void testGetMutlipleSecurityConstraints() throws Exception(Code)
Tests whether multiple security-constraint elements are returned in the expected order.
throws:
  Exception - If an unexpected error occurs



testGetMutlipleSecurityRoles
public void testGetMutlipleSecurityRoles() throws Exception(Code)
Tests whether multiple security-role elements are correctly retrieved in the expected order.
throws:
  Exception - If an unexpected error occurs



testGetServletElementWithOneServlet
public void testGetServletElementWithOneServlet() throws Exception(Code)
Tests whether a servlet element is correctly retrieved from a descriptor containing only one servlet definition.
throws:
  Exception - If an unexpected error occurs



testGetServletMappingsWithMultipleMappings
public void testGetServletMappingsWithMultipleMappings() throws Exception(Code)
Tests whether multiple servlet mappings are correctly retrieved from a descriptor.
throws:
  Exception - If an unexpected error occurs



testGetServletMappingsWithOneMapping
public void testGetServletMappingsWithOneMapping() throws Exception(Code)
Tests whether a single serrvlet-mapping is correctly retrieved from a descriptor.
throws:
  Exception - If an unexpected error occurs



testGetServletNames
public void testGetServletNames() throws Exception(Code)
Tests whether the names of the servlets defined in a descriptor are correctly returned in the expected order.
throws:
  Exception - If an unexpected error occurs



testGetServletNamesForClassWithMultipleServlets
public void testGetServletNamesForClassWithMultipleServlets() throws Exception(Code)
Tests whether a retrieving the servlet names by the name of the class implementing the servlet works correctly for a descriptor with multiple servlet definitions.
throws:
  Exception - If an unexpected error occurs



testGetServletNamesForClassWithSingleServlet
public void testGetServletNamesForClassWithSingleServlet() throws Exception(Code)
Tests whether a retrieving a servlet name by the name of the class implementing the servlet works correctly for a descriptor with a single servlet definition.
throws:
  Exception - If an unexpected error occurs



testGetServletNamesForJspFileWithMultipleServlets
public void testGetServletNamesForJspFileWithMultipleServlets() throws Exception(Code)
Tests whether a retrieving the servlet names by the path of the JSP file implementing the servlet works correctly for a descriptor with multiple servlet definitions.
throws:
  Exception - If an unexpected error occurs



testGetServletNamesForJspFileWithSingleServlet
public void testGetServletNamesForJspFileWithSingleServlet() throws Exception(Code)
Tests whether a retrieving a servlet name by the path of the JSP file implementing the servlet works correctly for a descriptor with a single servlet definition.
throws:
  Exception - If an unexpected error occurs



testGetServletRunAsRole
public void testGetServletRunAsRole() throws Exception(Code)
Tests that the a servlets run-as role-name can be extracted
throws:
  Exception - If an unexpected error occurs



testGetSingleSecurityConstraint
public void testGetSingleSecurityConstraint() throws Exception(Code)
Tests whether a single security-constraint element in the descriptor is correctly retrieved.
throws:
  Exception - If an unexpected error occurs



testGetSingleSecurityRole
public void testGetSingleSecurityRole() throws Exception(Code)
Tests whether a single security-role element is correctly retrieved.
throws:
  Exception - If an unexpected error occurs



testGetVersion22
public void testGetVersion22() throws Exception(Code)
Tests whether a servlet API version 2.2 descriptor is correctly detected.
throws:
  Exception - If an unexpected error occurs



testGetVersion23
public void testGetVersion23() throws Exception(Code)
Tests whether a servlet API version 2.3 descriptor is correctly detected.
throws:
  Exception - If an unexpected error occurs



testGetVersionUnknown
public void testGetVersionUnknown() throws Exception(Code)
Tests whether WebXml#getVersion returns null when the public ID of the DOCTYPE is not recognized.
throws:
  Exception - If an unexpected error occurs



testGetVersionWithoutDoctype
public void testGetVersionWithoutDoctype() throws Exception(Code)
Tests whether WebXml#getVersion returns null when the DOCTYPE is missing.
throws:
  Exception - If an unexpected error occurs



testHasFilterWithMultipleFilters
public void testHasFilterWithMultipleFilters() throws Exception(Code)
Tests whether WebXml.hasFilter returns the correct values for a descriptor containing multiple filter definitions.
throws:
  Exception - If an unexpected error occurs



testHasFilterWithNullName
public void testHasFilterWithNullName() throws Exception(Code)
Tests whether calling WebXml.hasFilter with null as filter name parameter results in a NullPointerException being thrown.
throws:
  Exception - If an unexpected error occurs



testHasFilterWithOneFilter
public void testHasFilterWithOneFilter() throws Exception(Code)
Tests whether WebXml.hasFilter returns the correct value for a descriptor containing one filter definition.
throws:
  Exception - If an unexpected error occurs



testHasLoginConfig
public void testHasLoginConfig() throws Exception(Code)
Tests whether checking a descriptor with a login configuration for a login configuration results in true.
throws:
  Exception - If an unexpected error occurs



testHasLoginConfigEmpty
public void testHasLoginConfigEmpty() throws Exception(Code)
Tests whether checking an empty descriptor for a login configuration results in false.
throws:
  Exception - If an unexpected error occurs



testHasSecurityConstraintEmpty
public void testHasSecurityConstraintEmpty() throws Exception(Code)
Tests whether checking an empty descriptor for some security constraint results in false.
throws:
  Exception - If an unexpected error occurs



testHasSecurityRoleEmpty
public void testHasSecurityRoleEmpty() throws Exception(Code)
Tests whether checking an empty descriptor for some security roles results in false.
throws:
  Exception - If an unexpected error occurs



testHasServletWithMultipleServlets
public void testHasServletWithMultipleServlets() throws Exception(Code)
Tests whether WebXml.hasServlet reports the correct values for a descriptor containing multiple servlet definitions.
throws:
  Exception - If an unexpected error occurs



testHasServletWithNullName
public void testHasServletWithNullName() throws Exception(Code)
Tests whether calling WebXml.hasServlet with a null parameter as servlet name throws a NullPointerException.
throws:
  Exception - If an unexpected error occurs



testHasServletWithOneServlet
public void testHasServletWithOneServlet() throws Exception(Code)
Tests whether WebXml.hasServlet reports the correct values for a descriptor containing a single servlet definition.
throws:
  Exception - If an unexpected error occurs



testSetLoginConfigAdding
public void testSetLoginConfigAdding() throws Exception(Code)
Tests retrieving the authentication method from a descriptor.
throws:
  Exception - If an unexpected error occurs



testSetLoginConfigReplacing
public void testSetLoginConfigReplacing() throws Exception(Code)
Tests retrieving the authentication method from a descriptor.
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.