|
||||||||
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.
ServletContext
. TestCase
class on the server
side, set up the implicit objects and call the test method. ServletTestCase
,
FilterTestCase
, ...) must extend. WebTestCaller
. WebTestCaller
.
ServletExceptionWrapper
except that this exception class
extends JUnit AssertionFailedError
so that JUnit will
print a different message in it's runner console. Category
class. TestException
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.
cactus.properties
file is in the CLASSPATH, ... cactus.properties
file is in the CLASSPATH.
ServletConfig
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
HttpURLConnection
passed as parameter so
that it will carry authentication information.
jspRedirector.jsp
JSP Redirector.
RequestDispatcher
forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
log()
methods so that it is possible to easily assert the
content of the logs.
HttpServletRequest.getParameter()
.
String
object.
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
.
RequestDispatcher
include()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
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.
JspTestCaller
. 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
. 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
.
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.
PageContext
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
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. 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()
and tearDown()
.
ServletTestRedirector
servlet. ServletTestRedirector
servlet.
ServletTestRedirector
can
perform. ServletConfig
which overrides the
getServletContext()
method to return our own wrapper around
ServletContext
. ServletContext
. Throwable
object. TestCase
class on the server
side, set up the implicit objects and call the test method. ServletTestCaller
. ServletTestCaller
.
<- ServletURL(String,String,String,String,String,String) -
- Creates the URL to simulate.
- ServletURL(String,String,String,String,String) -
- Creates the URL to simulate, using the default HTTP protocol.
- ServletUtil - class org.apache.cactus.server.ServletUtil
- All prupose utility methods for manipulating the Servlet API.
- ServletUtil() -
- All prupose utility methods for manipulating the Servlet API.
- saveToRequest(WebRequest) -
- Saves the current URL to a
WebRequest
object.
- session -
- Valid
HttpSession
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
- setAttribute(String,Object) -
-
- setAttribute(String,Object,int) -
-
- setAttribute(String,Object) -
-
- setAttribute(String,Object) -
-
- setAuthentication(AbstractAuthentication) -
- Sets the authentication object that will configure the http request
- setAutomaticSession(boolean) -
-
- setComment(String) -
- If a user agent (web browser) presents this cookie to a user, the
cookie's purpose will be described using this comment.
- setContentType(String) -
- Sets the content type that will be set in the http request
- setDomain(String) -
- Sets the cookie domain.
- setExpiryDate(Date) -
- Set the cookie expires date.
- setHttpServletRequest(HttpServletRequest) -
-
- setHttpServletRequest(HttpServletRequest) -
-
- setHttpServletResponse(HttpServletResponse) -
-
- setHttpServletResponse(HttpServletResponse) -
-
- setInitParameter(String,String) -
- Sets a parameter as if it were set in the
web.xml
file.
- setJspWriter(JspWriter) -
-
- setName(String) -
- Sets the cookie name
- setName(String) -
- Sets the user name.
- setPageContext(PageContext) -
-
- setPassword(String) -
- Sets the user password of the Credential.
- setPath(String) -
- Sets the cookie path.
- setRedirectorName(String) -
- Override the redirector Name defined in
cactus.properties
.
- setSecure(boolean) -
- Indicates to the user agent that the cookie should only be sent
using a secure protocol (https).
- setServletConfig(ServletConfig) -
-
- setServletContext(ServletContext) -
-
- setServletContext(ServletContext) -
-
- setServletName(String) -
- Sets the servlet name.
- setURL(String,String,String,String,String) -
- Sets the simulated URL.
- setUserData(InputStream) -
- Allow the user to send arbitrary data in the request body
- setValue(String) -
- Sets the cookie value
HttpServletRequest
,
HttpServletResponse
and ServletContext
). HttpServletRequest
,
HttpServletResponse
and ServletContext
).
WebTestResult
object. WebTestResult
object.
WebTestResult.toXml()
).
WebTestResult.toXml()
).
WebTestResult.toXml()
).
WebTestResult.toXml()
).
WebTestResult.toXml()
).
|
||||||||
PREV NEXT | FRAMES NO FRAMES |