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


org.apache.cactus.integration.ant.AntTestCase
   org.apache.cactus.integration.ant.TestCactifyWarTask

TestCactifyWarTask
final public class TestCactifyWarTask extends AntTestCase (Code)
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
version:
   $Id: TestCactifyWarTask.java 239162 2005-04-26 09:57:59Z grimsell $



Constructor Summary
public  TestCactifyWarTask()
    

Method Summary
protected  voidsetUp()
    
public  voidtestAddWeblogicEjbRefs()
    
public  voidtestCustomFilterRedirectorMapping()
     Verifies that the mapping of the filter redirector is correctly overridden by a nested 'filterredirector' element.
public  voidtestCustomFilterRedirectorMappingIgnored()
     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  voidtestCustomJspRedirectorMapping()
     Verifies that the mapping of the JSP redirector is correctly overridden by a nested 'jspredirector' element.
public  voidtestCustomServletRedirectorMapping()
     Verifies that the mapping of the servlet redirector is correctly overridden by a nested 'servletredirector' element.
public  voidtestDefaultRedirectors22Doctype()
     Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
public  voidtestDefaultRedirectors23Doctype()
     Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
public  voidtestDefaultRedirectorsNewWar22()
     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  voidtestDefaultRedirectorsNewWar23()
     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  voidtestDefaultRedirectorsNoDoctype()
     Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
public  voidtestDestFileNotSet()
     Verifies that the task throws an exception when the destfile attribute has not been set.
public  voidtestLoginConfigNotOverwritten()
     Verifies that a already existent login configuration does not get replaced by the default BASIC login configuration when secured redirectors are defined.
public  voidtestMultipleNamedFilterRedirectors()
     Verifies that two filter redirectors with different names and mappings are added as expected.
public  voidtestMultipleNamedJspRedirectors()
     Verifies that two JSP redirectors with different names and mappings are added as expected.
public  voidtestMultipleNamedServletRedirectors()
     Verifies that two servlet redirectors with different names and mappings are added as expected.
public  voidtestNeitherSrcFileNorVersionSet()
     Verifies that the task throws an exception when neither the srcfile nor the version attribute has been set.
public  voidtestNoDuplicateJars()
     Verifies that JARs already contained by the source archive are not added again.
public  voidtestSecuredServletRedirector()
     Verifies that a secured servlet redirector gets added alongside the role names.
public  voidtestSrcFileWithoutWebXml()
     Verifies the error raised when the source archive does not contain a web deployment descriptor.
public  voidtestSrcFileWithoutWebXmlNewWebXml22()
     Verifies an empty web was created when the source archive does not contain a web deployment descriptor but specifies the version.
public  voidtestSrcFileWithoutWebXmlNewWebXml23()
     Verifies an empty web was created when the source archive does not contain a web deployment descriptor but specifies the version.


Constructor Detail
TestCactifyWarTask
public TestCactifyWarTask()(Code)

See Also:   AntTestCase.AntTestCase




Method Detail
setUp
protected void setUp() throws Exception(Code)

See Also:   junit.framework.TestCase.setUp



testAddWeblogicEjbRefs
public void testAddWeblogicEjbRefs() throws Exception(Code)
Tests that ejb refs can be added for weblogic
throws:
  Exception - iIf an unexpected error occurs



testCustomFilterRedirectorMapping
public void testCustomFilterRedirectorMapping() throws Exception(Code)
Verifies that the mapping of the filter redirector is correctly overridden by a nested 'filterredirector' element.
throws:
  Exception - If an unexpected error occurs



testCustomFilterRedirectorMappingIgnored
public void testCustomFilterRedirectorMappingIgnored() throws Exception(Code)
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.
throws:
  Exception - If an unexpected error occurs



testCustomJspRedirectorMapping
public void testCustomJspRedirectorMapping() throws Exception(Code)
Verifies that the mapping of the JSP redirector is correctly overridden by a nested 'jspredirector' element.
throws:
  Exception - If an unexpected error occurs



testCustomServletRedirectorMapping
public void testCustomServletRedirectorMapping() throws Exception(Code)
Verifies that the mapping of the servlet redirector is correctly overridden by a nested 'servletredirector' element.
throws:
  Exception - If an unexpected error occurs



testDefaultRedirectors22Doctype
public void testDefaultRedirectors22Doctype() throws Exception(Code)
Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
throws:
  Exception - If an unexpected error occurs



testDefaultRedirectors23Doctype
public void testDefaultRedirectors23Doctype() throws Exception(Code)
Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
throws:
  Exception - If an unexpected error occurs



testDefaultRedirectorsNewWar22
public void testDefaultRedirectorsNewWar22() throws Exception(Code)
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.
throws:
  Exception - If an unexpected error occurs



testDefaultRedirectorsNewWar23
public void testDefaultRedirectorsNewWar23() throws Exception(Code)
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.
throws:
  Exception - If an unexpected error occurs



testDefaultRedirectorsNoDoctype
public void testDefaultRedirectorsNoDoctype() throws Exception(Code)
Tests whether the Cactus test redirectors are correctly added to the descriptor of the cactified WAR.
throws:
  Exception - If an unexpected error occurs



testDestFileNotSet
public void testDestFileNotSet() throws Exception(Code)
Verifies that the task throws an exception when the destfile attribute has not been set.
throws:
  Exception - If an unexpected error occurs



testLoginConfigNotOverwritten
public void testLoginConfigNotOverwritten() throws Exception(Code)
Verifies that a already existent login configuration does not get replaced by the default BASIC login configuration when secured redirectors are defined.
throws:
  Exception - If an unexpected error occurs



testMultipleNamedFilterRedirectors
public void testMultipleNamedFilterRedirectors() throws Exception(Code)
Verifies that two filter redirectors with different names and mappings are added as expected.
throws:
  Exception - If an unexpected error occurs



testMultipleNamedJspRedirectors
public void testMultipleNamedJspRedirectors() throws Exception(Code)
Verifies that two JSP redirectors with different names and mappings are added as expected.
throws:
  Exception - If an unexpected error occurs



testMultipleNamedServletRedirectors
public void testMultipleNamedServletRedirectors() throws Exception(Code)
Verifies that two servlet redirectors with different names and mappings are added as expected.
throws:
  Exception - If an unexpected error occurs



testNeitherSrcFileNorVersionSet
public void testNeitherSrcFileNorVersionSet() throws Exception(Code)
Verifies that the task throws an exception when neither the srcfile nor the version attribute has been set.
throws:
  Exception - If an unexpected error occurs



testNoDuplicateJars
public void testNoDuplicateJars() throws Exception(Code)
Verifies that JARs already contained by the source archive are not added again.
throws:
  Exception - If an unexpected error occurs



testSecuredServletRedirector
public void testSecuredServletRedirector() throws Exception(Code)
Verifies that a secured servlet redirector gets added alongside the role names.
throws:
  Exception - If an unexpected error occurs



testSrcFileWithoutWebXml
public void testSrcFileWithoutWebXml() throws Exception(Code)
Verifies the error raised when the source archive does not contain a web deployment descriptor.
throws:
  Exception - If an unexpected error occurs



testSrcFileWithoutWebXmlNewWebXml22
public void testSrcFileWithoutWebXmlNewWebXml22() throws Exception(Code)
Verifies an empty web was created when the source archive does not contain a web deployment descriptor but specifies the version.
throws:
  Exception - If an unexpected error occurs



testSrcFileWithoutWebXmlNewWebXml23
public void testSrcFileWithoutWebXmlNewWebXml23() throws Exception(Code)
Verifies an empty web was created when the source archive does not contain a web deployment descriptor but specifies the version.
throws:
  Exception - If an unexpected error occurs



Methods inherited from org.apache.cactus.integration.ant.AntTestCase
final protected void assertMessageLogged(String theMessage, int theLogLevel) throws IOException(Code)(Java Doc)
final protected void assertMessageLoggedContaining(String theSubstring, int theLogLevel) throws IOException(Code)(Java Doc)
final protected void assertTargetExecuted(String theName)(Code)(Java Doc)
final public void buildFinished(BuildEvent theEvent)(Code)(Java Doc)
final public void buildStarted(BuildEvent theEvent)(Code)(Java Doc)
final protected void executeTestTarget()(Code)(Java Doc)
protected String getLog(int theLogLevel)(Code)(Java Doc)
final protected Project getProject()(Code)(Java Doc)
final protected File getProjectDir()(Code)(Java Doc)
final protected Target getTestTarget()(Code)(Java Doc)
final public void messageLogged(BuildEvent theEvent)(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
final public void targetFinished(BuildEvent theEvent)(Code)(Java Doc)
final public void targetStarted(BuildEvent theEvent)(Code)(Java Doc)
final public void taskFinished(BuildEvent theEvent)(Code)(Java Doc)
final public void taskStarted(BuildEvent theEvent)(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)

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