|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
Name and a String
Password.HttpServletRequest.HttpServletRequest instance that delegates
it's method calls to the request object passed as parameter and that
uses the URL passed as parameter to simulate a URL from which the request
would come from.
PageContext.PageContext instance that delegates
it's method calls to the page context object passed as parameter and
that uses the URL passed as parameter to simulate a URL from which
the request would come from.
ServletConfig which overrides the
getServletContext() method to return our own wrapper around
ServletContext.ServletContext.WebConfiguration
implementations.TestCase class on the server
side, set up the implicit objects and call the test method.ServletExceptionWrapper except that this exception class
extends JUnit AssertionFailedError so that JUnit will
print a different message in it's runner console.BaseWebRequest.setConfiguration(Configuration) be called before the methods
requiring a configuration object.
ChainedException and set the exception error
message.
ChainedException, set the exception error
message along with the exception object that caused this exception.
ChaineException, and set exception object
that caused this exception.
ChainedRuntimeException and set the exception
error message.
ChainedRuntimeException, set the exception error
message along with the exception object that caused this exception.
ChainedRuntimeException, and set exception object
that caused this exception.
XXXTestCase classes.ConnectionHelper specified in Cactus
configuration or the default one if none has been specified.ServletConfig object that you can access from
the testXXX(), setUp and
tearDown() methods.
Header for cookies that matches
the domain and path.
HttpState object containing all cookies
stored in the passed WebRequest object.
ConnectionHelper
to use.
jspRedirector.jsp JSP Redirector.
ServiceEnumeration.valueOf(java.lang.String) and identity
comparison instead of this method
RequestDispatcher forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
CookieUtil.getCookieDomain(WebRequest, String)
CookieUtil.getCookiePath(WebRequest, String)
CookieUtil.getCookiePort(WebRequest, int)
ClientTestCaseDelegate.getCurrentTestName() instead
log() methods so that it is possible to easily assert the
content of the logs.
HttpServletRequest.getParameter().
endXXX() and global end methods.
String object.
ConnectionHelper using Jakarta Commons
HttpClient.ServletTestRedirector servlet.HttpServletRequest.HttpServletRequest instance that delegates
it's method calls to the request object passed as parameter and that
uses the URL passed as parameter to simulate a URL from which the request
would come from.
org.apache.commons.httpclient.util.HttpURLConnection.HttpURLConnection from a
HttpMethod.
WebTestCaller.
java.lang.Object implementation.
RequestDispatcher include()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
setInitParameter() method.
ServletExceptionWrapper class, we need to be able to
know the original server exception class.
ServletExceptionWrapper class, we need to be able to
know the original server exception class.
ConnectionHelper using the JDK
HttpURLConnection class.JspTestCase).JspTestCaller.jspRedirector.jsp JSP Redirector in the java
realmn in order to provide a symmetry with the ServletRedirector
and minimize the amount of java code in jspRedirector.jsp.JspWriter object (same as
pagecontext.getOut()).
ServletURL object by loading it's values from the
HTTP request.
AbstractServletContextWrapper.log(String message, Throwable throwable) instead.
This method was originally defined to write an exception's
stack trace and an explanatory error message to the servlet
log file.
JspWriter object that you can access from
the testXXX(), setUp and
tearDown() methods.
PageContext so that get methods that would
normally return implicit objects will now return Cactus wrapper of
implicit objects instead.PageContext instance that delegates
it's method calls to the page context object passed as parameter and
that uses the URL passed as parameter to simulate a URL from which
the request would come from.
WebTestResult object.PageContext object that you can access from
the testXXX(), setUp and
tearDown() methods.
PageContext object.
WebTestResult object.
RequestDispatcher which overrides the
forward() and include methods to use the original
HTTP request object instead of the simulated one used by Cactus.endXXX() and global end methods.WebTestResult.XML_EXCEPTION_CLASSNAME_ATTRIBUTE portion
and extract the exception classname.
WebTestResult.XML_EXCEPTION_MESSAGE_ELEMENT portion
and extract the exception message.
WebTestResult.XML_EXCEPTION_STACKTRACE_ELEMENT portion
and extract the exception stacktrace.
WebTestResult.XML_ROOT_ELEMENT portion.
HttpServletRequest object that you can access from
the testXXX(), setUp and
tearDown() methods.
HttpServletResponse object that you can access from
the testXXX(), setUp and
tearDown() methods.
setUp(), testXXX() and
tearDown().ServletConfig for Servlet API 2.2.ServletContext.Throwable object.ServletTestCase).TestCase class on the server
side, set up the implicit objects and call the test method.ServletTestCaller.TestSuite wrapper that wraps all the tests of the
suite in Cactus ServletTestCase objects.WebRequest object.
HttpSession object that you can access from
the testXXX(), setUp and
tearDown() methods.
HttpServletRequest.getContextPath().
web.xml file.
HttpServletRequest.getPathInfo().
ServletURL.PROTOCOL_HTTP or
ServletURL.PROTOCOL_HTTPS.
HttpServletResquest.getQueryString().
cactus.properties.
HttpServletRequest.getServerName() and
HttpServletRequest.getServerPort().
HttpServletRequest.getServletPath().
application scope that will
hold the results of the test.
Configuration interface with methods
provided configuration information related to Web redirectors.- WebImplicitObjects - interface org.apache.cactus.server.WebImplicitObjects.
- Interface for implicit objects that exist
for all web requests (
HttpServletRequest,
HttpServletResponse and ServletContext). - WebRequest - class org.apache.cactus.WebRequest.
- Extends
BaseWebRequest to add properties specific to the
Cactus Web Redirectors. - WebRequest() -
Constructor for class org.apache.cactus.WebRequest
- Default constructor that requires that
BaseWebRequest.setConfiguration(Configuration) be called before the methods
requiring a configuration object.
- WebRequest(WebConfiguration) -
Constructor for class org.apache.cactus.WebRequest
-
- WebResponse - class org.apache.cactus.WebResponse.
- Default web response implementation that provides a minimal
API for asserting returned output stream from the server side.
- WebResponse(WebRequest, HttpURLConnection) -
Constructor for class org.apache.cactus.WebResponse
-
- WebResponseObjectFactory - class org.apache.cactus.client.WebResponseObjectFactory.
- Constructs Web response object that are passed as parameter to
endXXX() and global end methods. - WebResponseObjectFactory() -
Constructor for class org.apache.cactus.client.WebResponseObjectFactory
-
- WebTestResult - class org.apache.cactus.WebTestResult.
- Represent the result of the execution of the Test class by the
server redirector.If any exception was raised during the test, it
is saved by this class.
- WebTestResult() -
Constructor for class org.apache.cactus.WebTestResult
- Constructor to call when the test was ok and no error was raised.
- WebTestResult(Throwable) -
Constructor for class org.apache.cactus.WebTestResult
- Constructor to call when an exception was raised during the test.
- WebTestResult(String, String, String) -
Constructor for class org.apache.cactus.WebTestResult
- Constructor used to reconstruct a WebTestResult object from its String
representation.
- WebTestResultParser - class org.apache.cactus.client.WebTestResultParser.
- Parse a string representing a Test result and transform it into a
WebTestResult object. - WebTestResultParser() -
Constructor for class org.apache.cactus.client.WebTestResultParser
-
- WebappTestRunner - class org.apache.cactus.server.runner.WebappTestRunner.
- JUnit Test Runner that can load test cases that are in the classpath of
a webapp.
- WebappTestRunner() -
Constructor for class org.apache.cactus.server.runner.WebappTestRunner
-
- WebappTestSuiteLoader - class org.apache.cactus.server.runner.WebappTestSuiteLoader.
- Dynamic class loader to load classes from the webapp classpath.
- WebappTestSuiteLoader() -
Constructor for class org.apache.cactus.server.runner.WebappTestSuiteLoader
-
- webImplicitObjects -
Variable in class org.apache.cactus.server.AbstractWebTestCaller
- The implicit objects (which will be used to set the test case fields
in the
setTesCaseFields method.
WebTestResult.toXml()).
WebTestResult.toXml()).
WebTestResult.toXml()).
WebTestResult.toXml()).
WebTestResult.toXml()).
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||