Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant » [javadoc | source]
org.apache.cactus.integration.ant
public final class: TestCactifyWarTask [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.integration.ant.AntTestCase
         org.apache.cactus.integration.ant.TestCactifyWarTask

All Implemented Interfaces:
    BuildListener

Unit tests for CactifyWarTask . TODO: test whether all files contained by the source WAR are also added to the cactified WAR TODO: test whether the mergewebxml is actually merged into the cactified web.xml
Constructor:
 public TestCactifyWarTask() 
Method from org.apache.cactus.integration.ant.TestCactifyWarTask Summary:
setUp,   testAddWeblogicEjbRefs,   testCustomFilterRedirectorMapping,   testCustomFilterRedirectorMappingIgnored,   testCustomJspRedirectorMapping,   testCustomServletRedirectorMapping,   testDefaultRedirectors22Doctype,   testDefaultRedirectors23Doctype,   testDefaultRedirectorsNewWar22,   testDefaultRedirectorsNewWar23,   testDefaultRedirectorsNoDoctype,   testDestFileNotSet,   testLoginConfigNotOverwritten,   testMultipleNamedFilterRedirectors,   testMultipleNamedJspRedirectors,   testMultipleNamedServletRedirectors,   testNeitherSrcFileNorVersionSet,   testNoDuplicateJars,   testSecuredServletRedirector,   testSrcFileWithoutWebXml,   testSrcFileWithoutWebXmlNewWebXml22,   testSrcFileWithoutWebXmlNewWebXml23
Methods from org.apache.cactus.integration.ant.AntTestCase:
assertMessageLogged,   assertMessageLoggedContaining,   assertTargetExecuted,   buildFinished,   buildStarted,   executeTestTarget,   getLog,   getProject,   getProjectDir,   getTestTarget,   messageLogged,   setUp,   targetFinished,   targetStarted,   taskFinished,   taskStarted,   tearDown
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.integration.ant.TestCactifyWarTask Detail:
 protected  void setUp() throws Exception 
 public  void testAddWeblogicEjbRefs() throws Exception 
    Tests that ejb refs can be added for weblogic
 public  void testCustomFilterRedirectorMapping() throws Exception 
    Verifies that the mapping of the filter redirector is correctly overridden by a nested 'filterredirector' element.
 public  void testCustomFilterRedirectorMappingIgnored() throws Exception 
    Verifies that no definition of the filter redirector is added to a Servlet 2.2 descriptor, even when explicitly requested by a nested 'filterredirector' element.
 public  void testCustomJspRedirectorMapping() throws Exception 
    Verifies that the mapping of the JSP redirector is correctly overridden by a nested 'jspredirector' element.
 public  void testCustomServletRedirectorMapping() throws Exception 
    Verifies that the mapping of the servlet redirector is correctly overridden by a nested 'servletredirector' element.
 public  void testDefaultRedirectors22Doctype() throws Exception 
    Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
 public  void testDefaultRedirectors23Doctype() throws Exception 
    Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
 public  void testDefaultRedirectorsNewWar22() throws Exception 
    Tests whether the Cactus test redirectors are correctly added to the descriptor of a WAR when no srcfile attribute had been set, and the version has been set to 2.2.
 public  void testDefaultRedirectorsNewWar23() throws Exception 
    Tests whether the Cactus test redirectors are correctly added to the descriptor of a WAR when no srcfile attribute had been set, and the version has been set to 2.3.
 public  void testDefaultRedirectorsNoDoctype() throws Exception 
    Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
 public  void testDestFileNotSet() throws Exception 
    Verifies that the task throws an exception when the destfile attribute has not been set.
 public  void testLoginConfigNotOverwritten() throws Exception 
    Verifies that a already existent login configuration does not get replaced by the default BASIC login configuration when secured redirectors are defined.
 public  void testMultipleNamedFilterRedirectors() throws Exception 
    Verifies that two filter redirectors with different names and mappings are added as expected.
 public  void testMultipleNamedJspRedirectors() throws Exception 
    Verifies that two JSP redirectors with different names and mappings are added as expected.
 public  void testMultipleNamedServletRedirectors() throws Exception 
    Verifies that two servlet redirectors with different names and mappings are added as expected.
 public  void testNeitherSrcFileNorVersionSet() throws Exception 
    Verifies that the task throws an exception when neither the srcfile nor the version attribute has been set.
 public  void testNoDuplicateJars() throws Exception 
    Verifies that JARs already contained by the source archive are not added again.
 public  void testSecuredServletRedirector() throws Exception 
    Verifies that a secured servlet redirector gets added alongside the role names.
 public  void testSrcFileWithoutWebXml() throws Exception 
    Verifies the error raised when the source archive does not contain a web deployment descriptor.
 public  void testSrcFileWithoutWebXmlNewWebXml22() throws Exception 
    Verifies an empty web was created when the source archive does not contain a web deployment descriptor but specifies the version.
 public  void testSrcFileWithoutWebXmlNewWebXml23() throws Exception 
    Verifies an empty web was created when the source archive does not contain a web deployment descriptor but specifies the version.