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


org.apache.cactus.internal.client.ClientTestCaseCaller

ClientTestCaseCaller
public class ClientTestCaseCaller extends Assert (Code)
Provides the ability to run common code before and after each test on the client side. All the methods provided are independent of any communication protocol between client side and server side (HTTP, JMS, etc). Any protocol dependent methods must be provided and implemented in the ProtocolHandler implementation class.
version:
   $Id: ClientTestCaseCaller.java 238991 2004-05-22 11:34:50Z vmassol $


Field Summary
final protected static  StringBEGIN_METHOD_PREFIX
     The prefix of a begin test method.
final protected static  StringCLIENT_GLOBAL_BEGIN_METHOD
     The name of the method that is called before each test on the client side (if it exists).
final protected static  StringCLIENT_GLOBAL_END_METHOD
     The name of the method that is called after each test on the client side (if it exists).
final protected static  StringEND_METHOD_PREFIX
     The prefix of an end test method.
final protected static  StringTEST_METHOD_PREFIX
     The prefix of a test method.

Constructor Summary
public  ClientTestCaseCaller(Test theDelegatedTest, Test theWrappedTest, ProtocolHandler theProtocolHandler)
    

Method Summary
public  voidcallBeginMethod(Request theRequest)
     Call the test case begin method.
public  ObjectcallEndMethod(Request theRequest, ResponseObjectFactory theResponseFactory)
     Call the test case end method
Parameters:
  theRequest - the request data that were used to open theconnection.
Parameters:
  theResponseFactory - the factory to use to return response objects.
public  voidcallGlobalBeginMethod(Request theRequest)
     Call the global begin method.
final public  LoggetLogger()
    
public  voidrunBareInit()
     Perform client side initializations before each test, such as re-initializating the logger and printing some logging information.
public  voidrunTest()
     Execute begin and end methods and calls the different ProtocolHandler lifecycle methods to execute the test on the server side.

Field Detail
BEGIN_METHOD_PREFIX
final protected static String BEGIN_METHOD_PREFIX(Code)
The prefix of a begin test method.



CLIENT_GLOBAL_BEGIN_METHOD
final protected static String CLIENT_GLOBAL_BEGIN_METHOD(Code)
The name of the method that is called before each test on the client side (if it exists).



CLIENT_GLOBAL_END_METHOD
final protected static String CLIENT_GLOBAL_END_METHOD(Code)
The name of the method that is called after each test on the client side (if it exists).



END_METHOD_PREFIX
final protected static String END_METHOD_PREFIX(Code)
The prefix of an end test method.



TEST_METHOD_PREFIX
final protected static String TEST_METHOD_PREFIX(Code)
The prefix of a test method.




Constructor Detail
ClientTestCaseCaller
public ClientTestCaseCaller(Test theDelegatedTest, Test theWrappedTest, ProtocolHandler theProtocolHandler)(Code)

Parameters:
  theDelegatedTest - the test we are delegating for
Parameters:
  theWrappedTest - the test being wrapped by this delegate (or null if none)
Parameters:
  theProtocolHandler - the protocol handler to use to execute the tests on the server side




Method Detail
callBeginMethod
public void callBeginMethod(Request theRequest) throws Throwable(Code)
Call the test case begin method.
Parameters:
  theRequest - the request object to pass to the begin method.
exception:
  Throwable - any error that occurred when calling the beginmethod for the current test case.



callEndMethod
public Object callEndMethod(Request theRequest, ResponseObjectFactory theResponseFactory) throws Throwable(Code)
Call the test case end method
Parameters:
  theRequest - the request data that were used to open theconnection.
Parameters:
  theResponseFactory - the factory to use to return response objects. the created Reponse object
exception:
  Throwable - any error that occurred when calling the end methodfor the current test case.



callGlobalBeginMethod
public void callGlobalBeginMethod(Request theRequest) throws Throwable(Code)
Call the global begin method. This is the method that is called before each test if it exists. It is called on the client side only.
Parameters:
  theRequest - the request object which will contain data that willbe used to connect to the Cactus server side redirectors.
exception:
  Throwable - any error that occurred when calling the method



getLogger
final public Log getLogger()(Code)
The logger used by the TestCase class andsubclasses to perform logging.



runBareInit
public void runBareInit()(Code)
Perform client side initializations before each test, such as re-initializating the logger and printing some logging information.



runTest
public void runTest() throws Throwable(Code)
Execute begin and end methods and calls the different ProtocolHandler lifecycle methods to execute the test on the server side. Note that this method is overriden from the JUnit junit.framework.TestCase class in order to prevent JUnit from calling the junit.framework.TestCase.setUp and junit.framework.TestCase.tearDown methods on the client side. instead we are calling the server redirector proxy and the setup and teardown methods will be executed on the server side.
exception:
  Throwable - if any error happens during the execution ofthe test



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