|
|||||||||||
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.
ServletConfig
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
Header
for cookies that matches
the domain and path.
begin()
and beginXXX()
methods.
endXXX()
and end()
methods.
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)
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.ProtocolHandler
lifecycle
methods.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.
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.
setInitParameter()
method.
JspTestCase
).JspTestCaller
.jspRedirector.jsp
JSP Redirector in the java
realm 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.
ServletTestRunner
.ServletTestRunner
which allows
running Cactus tests from a browser.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.ProtocolHandler
.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.
ProtocolHandler
lifecycle methods to execute the test
on the server side.
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.
web.xml
file
(using the <context-param> element).
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.
TestCaseImplementError
and set the error message
Configuration
interface with methods
provided configuration information related to Web redirectors.HttpServletRequest
,
HttpServletResponse
and ServletContext
).BaseWebRequest
to add properties specific to the
Cactus Web Redirectors.BaseWebRequest.setConfiguration(Configuration)
be called before the methods
requiring a configuration object.
WebTestResult
object.setTesCaseFields
method.
WebTestResult.toXml()
).
WebTestResult.toXml()
).
WebTestResult.toXml()
).
WebTestResult.toXml()
).
WebTestResult.toXml()
).
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |