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 $
testMergeOneFilterIntoDocumentWithSameFilter() Tests whether a single filter in the merge descriptor is ignored because
a filter with the same name already exists in the source descriptor.
testMergeOneServletIntoDocumentWithSameServlet() Tests whether a single servlet is correctly merged into a descriptor that
already contains the definition of a servlet with the same name.
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
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
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
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
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
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
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
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