|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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
. getHeaderField()
.
getInputStream()
.
ServletExceptionWrapper
except that this exception class
extends JUnit AssertionFailedError
so that JUnit will
print a different message in it's runner console.Category
class. AssertionFailedError
exception is returned.
AssertionFailedError
exception is returned.
AssertionFailedError
exception
is returned.
ServletTestRequest
parameter is still supported.
WebRequest
parameter is called correctly.
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.
jspRedirector.jsp
JSP Redirector.
AssertionFailedError
exception is returned.
AssertionFailedError
exception is returned.
AssertionFailedError
exception
is returned.
org.apache.cactus.WebResponse
parameter.
com.meterware.httpunit.WebResponse
parameter.
HttpURLConnection
parameter can still be called correctly.
RequestDispatcher
forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
java.net.URLConnection.getHeaderField
.
java.net.URLConnection.getInputStream
.
log()
methods so that it is possible to easily assert the
content of the logs.
WebTestCaller
.
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.
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.
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
.ServletURL
object by loading it's values from the
HTTP request.
HttpURLConnection
.JspWriter
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
PageContext
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.
HttpServletRequest
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
RequestDispatcher
which overrides the
forward()
and include
methods to use the original
HTTP request object instead of the simulated one used by Cactus.HttpServletResponse
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
setUp()
and tearDown()
.
WebRequest
object.
ServletTestRedirector
servlet.ServletTestRedirector
can
perform.ServletConfig
which overrides the
getServletContext()
method to return our own wrapper around
ServletContext
.ServletContext
. Throwable
object. ServletTestCase
).TestCase
class on the server
side, set up the implicit objects and call the test method.ServletTestCaller
.
URL = "http://" + serverName (including port) + requestURI ? - ServletURL(String, String, String, String, String) -
Constructor for class org.apache.cactus.ServletURL
- Creates the URL to simulate.
- session -
Variable in class org.apache.cactus.ServletTestCase
- Valid
HttpSession
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods.
- setAttribute(String, Object) -
Method in class org.apache.cactus.server.AbstractServletContextWrapper
-
- setAttribute(String, Object) -
Method in class org.apache.cactus.server.AbstractPageContextWrapper
-
- setAttribute(String, Object) -
Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
-
- setAttribute(String, Object, int) -
Method in class org.apache.cactus.server.AbstractPageContextWrapper
-
- setAutomaticSession(boolean) -
Method in class org.apache.cactus.WebRequest
-
- setComment(String) -
Method in class org.apache.cactus.Cookie
- If a user agent (web browser) presents this cookie to a user, the
cookie's purpose will be described using this comment.
- setDomain(String) -
Method in class org.apache.cactus.Cookie
- Sets the cookie domain.
- setExpiryDate(Date) -
Method in class org.apache.cactus.Cookie
- Set the cookie expires date.
- setHttpServletRequest(HttpServletRequest) -
Method in class org.apache.cactus.server.WebImplicitObjects
-
- setHttpServletResponse(HttpServletResponse) -
Method in class org.apache.cactus.server.WebImplicitObjects
-
- setInitParameter(String, String) -
Method in class org.apache.cactus.server.ServletConfigWrapper
- Sets a parameter as if it were set in the
web.xml
file.
- setJspWriter(JspWriter) -
Method in class org.apache.cactus.server.JspImplicitObjects
-
- setMethod(String) -
Method in class org.apache.cactus.WebRequest
-
- setName(String) -
Method in class org.apache.cactus.Cookie
- Sets the cookie name
- setPageContext(PageContext) -
Method in class org.apache.cactus.server.JspImplicitObjects
-
- setPath(String) -
Method in class org.apache.cactus.Cookie
- Sets the cookie path.
- setSecure(boolean) -
Method in class org.apache.cactus.Cookie
- Indicates to the user agent that the cookie should only be sent
using a secure protocol (https).
- setServletConfig(ServletConfig) -
Method in class org.apache.cactus.server.ServletImplicitObjects
-
- setServletContext(ServletContext) -
Method in class org.apache.cactus.server.WebImplicitObjects
-
- setServletName(String) -
Method in class org.apache.cactus.server.ServletConfigWrapper
- Sets the servlet name.
- setURL(String, String, String, String, String) -
Method in class org.apache.cactus.WebRequest
- Sets the simulated URL.
- setValue(String) -
Method in class org.apache.cactus.Cookie
- Sets the cookie value
- suite() -
Static method in class org.apache.cactus.TestAbstractTestCase
-
- suite() -
Static method in class org.apache.cactus.TestAll
-
AbstractTestCase
class.TestCase
class that intercepts all exceptions (and assert
them) coming from test case classes that inherits from it. AssertionFailedError
exception is returned.
AssertionFailedError
exception is returned.
AssertionFailedError
exception
is returned.
AssertionFailedError
exception is returned.
ServletTestRequest
parameter is still supported.
WebRequest
parameter is called correctly.
AssertionFailedError
exception is returned.
AssertionFailedError
exception is returned.
AssertionFailedError
exception
is returned.
AssertionFailedError
exception is returned.
org.apache.cactus.WebResponse
parameter.
com.meterware.httpunit.WebResponse
parameter.
HttpURLConnection
parameter can still be called correctly.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |