Java Doc for EnhydraAppTestCase.java in  » J2EE » Enhydra-Demos » org » hamletsoft » enhydra » cactus » business » 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 » J2EE » Enhydra Demos » org.hamletsoft.enhydra.cactus.business 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.hamletsoft.enhydra.cactus.business.EnhydraAppTestCase

All known Subclasses:   org.hamletsoft.enhydra.cactus.business.sample.SampleEnhydraRedirectionTestCase,  org.hamletsoft.enhydra.cactus.business.sample.SampleEnhydraAppTestCase,
EnhydraAppTestCase
public class EnhydraAppTestCase extends AbstractWebTestCase (Code)
Test classes that need access to valid EnhydraApp implicit objects (such as the the HTTP request, the HTTP response, the servlet config, ...) must subclass this class.
author:
   Ryuji "The Hamlet" Hattori
version:
   $Id: EnhydraAppTestCase.java,v 1.1 2006-09-11 12:30:51 sinisa Exp $


Field Summary
public  Applicationapplication
     Valid Application object that you can access from the testXXX(), setUp and tearDown() methods.
public  HttpPresentationCommscomms
     Valid HttpPresentationComms object that you can access from the testXXX(), setUp and tearDown() methods.
public  HttpPresentationRequestrequest
     Valid HttpPresentationRequest object that you can access from the testXXX(), setUp and tearDown() methods.
public  HttpPresentationResponseresponse
     Valid HttpPresentationResponse object that you can access from the testXXX(), setUp and tearDown() methods.

Constructor Summary
public  EnhydraAppTestCase(String theName)
     Constructs a JUnit test case with the given name.

Method Summary
protected  HashtablegetRedirectParameters(String url)
     getting Parameter table for the url of client page redirection.
Parameters:
  url - URL of Page Redirection.
protected  voidhookForClientPageRedirect(String url, Hashtable ht)
     Hook method for all Test on server side for client page redirection.
protected  voidrunServerTest()
     Overwrite Methods.
protected  voidrunTest()
     Runs a test case.

Field Detail
application
public Application application(Code)
Valid Application object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.



comms
public HttpPresentationComms comms(Code)
Valid HttpPresentationComms object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.



request
public HttpPresentationRequest request(Code)
Valid HttpPresentationRequest object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.



response
public HttpPresentationResponse response(Code)
Valid HttpPresentationResponse object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value.




Constructor Detail
EnhydraAppTestCase
public EnhydraAppTestCase(String theName)(Code)
Constructs a JUnit test case with the given name.
Parameters:
  theName - the name of the test case




Method Detail
getRedirectParameters
protected Hashtable getRedirectParameters(String url)(Code)
getting Parameter table for the url of client page redirection.
Parameters:
  url - URL of Page Redirection. HTTP parameter table for the URL of Page Redirection.
(Class of the Hashtable's value is not String but String[])
if the url has no parameter, this returns null.



hookForClientPageRedirect
protected void hookForClientPageRedirect(String url, Hashtable ht)(Code)
Hook method for all Test on server side for client page redirection.
Parameters:
  url - URL of Page Redirection.
Parameters:
  ht - HTTP parameter table for the URL of Page Redirection.
(Class of the Hashtable's value is not String but String[])



runServerTest
protected void runServerTest() throws Throwable(Code)
Overwrite Methods. because of need to handle ClinetSideRedirection Run the test that was specified in the constructor on the server side,



runTest
protected void runTest() throws Throwable(Code)
Runs a test case. This method is overriden from the JUnit TestCase class in order to seamlessly call the Cactus redirection servlet.



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