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


java.lang.Object
   org.apache.cactus.internal.server.AbstractWebTestCaller

All known Subclasses:   org.apache.cactus.internal.server.ServletTestCaller,  org.apache.cactus.internal.server.FilterTestCaller,
AbstractWebTestCaller
abstract public class AbstractWebTestCaller (Code)
Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method. This class provides a common abstraction for all test web requests.
version:
   $Id: AbstractWebTestCaller.java 238991 2004-05-22 11:34:50Z vmassol $


Field Summary
final protected static  StringTEST_RESULTS
     Name of the attribute in the application scope that will hold the results of the test.
protected  WebImplicitObjectswebImplicitObjects
     The implicit objects (which will be used to set the test case fields in the setTesCaseFields method.

Constructor Summary
public  AbstractWebTestCaller(WebImplicitObjects theObjects)
    

Method Summary
public  voiddoCreateSession()
     Create an HTTP Session and returns the response that contains the HTTP session as a cookie (unless URL rewriting is used in which case the jsesssionid cookie is not returned).
public  voiddoGetResults()
     Return the last test results in the HTTP response.
public  voiddoGetVersion()
     Return the cactus version.
public  voiddoRunTest()
     Run the connection test between client and server.
public  voiddoTest()
     Calls a test method.
abstract protected  WritergetResponseWriter()
    
protected  ClassgetTestClassClass(String theClassName)
    
Parameters:
  theClassName - the name of the test class the class object the test class to call
exception:
  ServletException - if the class of the current test casecannot be loaded in memory (i.e.
protected  TestCasegetTestClassInstance(String theClassName, String theWrappedClassName, String theTestCaseName)
    
Parameters:
  theClassName - the name of the test class
Parameters:
  theWrappedClassName - the name of the wrapped test class.
protected  StringgetTestClassName()
    
protected  StringgetTestMethodName()
    
protected  StringgetWrappedTestClassName()
    
protected  booleanisAutoSession()
    
abstract protected  voidsetTestCaseFields(TestCase theTestCase)
    

Field Detail
TEST_RESULTS
final protected static String TEST_RESULTS(Code)
Name of the attribute in the application scope that will hold the results of the test.



webImplicitObjects
protected WebImplicitObjects webImplicitObjects(Code)
The implicit objects (which will be used to set the test case fields in the setTesCaseFields method.




Constructor Detail
AbstractWebTestCaller
public AbstractWebTestCaller(WebImplicitObjects theObjects)(Code)

Parameters:
  theObjects - the implicit objects coming from the redirector




Method Detail
doCreateSession
public void doCreateSession() throws ServletException(Code)
Create an HTTP Session and returns the response that contains the HTTP session as a cookie (unless URL rewriting is used in which case the jsesssionid cookie is not returned).
exception:
  ServletException - if an unexpected error occurred



doGetResults
public void doGetResults() throws ServletException(Code)
Return the last test results in the HTTP response.
exception:
  ServletException - if an unexpected error occurred



doGetVersion
public void doGetVersion() throws ServletException(Code)
Return the cactus version. This is to make sure both the client side and server side are using the same version.
exception:
  ServletException - if an unexpected error occurred



doRunTest
public void doRunTest() throws ServletException(Code)
Run the connection test between client and server. This is just to ensure that configuration is set up correctly.
exception:
  ServletException - if an unexpected error occurred



doTest
public void doTest() throws ServletException(Code)
Calls a test method. The parameters needed to call this method are found in the HTTP request. Save the results in the application scope so that the Get Test Result service can find them.
exception:
  ServletException - if an unexpected error occurred



getResponseWriter
abstract protected Writer getResponseWriter() throws IOException(Code)
a Writer object that will be used to return thetest result to the client side.
exception:
  IOException - if an error occurs when retrieving the writer



getTestClassClass
protected Class getTestClassClass(String theClassName) throws ServletException(Code)

Parameters:
  theClassName - the name of the test class the class object the test class to call
exception:
  ServletException - if the class of the current test casecannot be loaded in memory (i.e. it is not in theclasspath)



getTestClassInstance
protected TestCase getTestClassInstance(String theClassName, String theWrappedClassName, String theTestCaseName) throws ServletException(Code)

Parameters:
  theClassName - the name of the test class
Parameters:
  theWrappedClassName - the name of the wrapped test class. Can benull if there is none
Parameters:
  theTestCaseName - the name of the current test case an instance of the test class to call
exception:
  ServletException - if the test case instance for the currenttest fails to be instanciated (for example if someinformation is missing from the HTTP request)



getTestClassName
protected String getTestClassName() throws ServletException(Code)
the class to test class name, extracted from the HTTP request
exception:
  ServletException - if the class name of the test case is missingfrom the HTTP request



getTestMethodName
protected String getTestMethodName() throws ServletException(Code)
the class method to call for the current test case, extractedfrom the HTTP request
exception:
  ServletException - if the method name of the test case ismissing from the HTTP request



getWrappedTestClassName
protected String getWrappedTestClassName() throws ServletException(Code)
the optional test class that is wrapped by a Cactus test case, extracted from the HTTP request
exception:
  ServletException - if the wrapped class name is missing from the HTTP request



isAutoSession
protected boolean isAutoSession()(Code)
true if the auto session flag for the Session can be found inthe HTTP request



setTestCaseFields
abstract protected void setTestCaseFields(TestCase theTestCase) throws Exception(Code)
Sets the implicit object in the test case class
Parameters:
  theTestCase - the instance of the test case class on which theclass variable (implicit objects) should be set
exception:
  Exception - if an errors occurs when setting the implicitobjects



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.