|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
ServletTestCase
,
FilterTestCase
, ...) must extend. ServletExceptionWrapper
except that this exception class
extends JUnit AssertionFailedError
so that JUnit will
print a different message in it's runner console.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.
RequestDispatcher
forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
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
).ServletURL
object by loading it's values from the
HTTP request.
out
implicit object that is
available in JSP pages.
pageContext
implicit object that is
available in JSP pages.
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.
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()
.
ServletTestRequest
object.
ServletTestRedirector
servlet.ServletTestRedirector
can perform.ServletConfig
which overrides the
getServletContext()
method to return our own wrapper around
ServletContext
.ServletContext
which overrides the
getRequestDispatcher()
method to return our own wrapper around
RequestDispatcher
.Throwable
object. ServletTestCase
).
URL = "http://" + serverName (including port) + requestURI ? - ServletURL(String, String, String, String, String) -
Constructor for class org.apache.commons.cactus.ServletURL
- Creates the URL to simulate.
- session -
Variable in class org.apache.commons.cactus.ServletTestCase
- Valid
HttpSession
object that you can access from
the testXXX()
, setUp
and tearDown()
methods.
- setAttribute(String, Object) -
Method in class org.apache.commons.cactus.server.HttpServletRequestWrapper
-
- setAttribute(String, Object) -
Method in class org.apache.commons.cactus.server.ServletContextWrapper
-
- setAutomaticSession(boolean) -
Method in class org.apache.commons.cactus.ServletTestRequest
-
- setInitParameter(String, String) -
Method in class org.apache.commons.cactus.server.ServletConfigWrapper
- Sets a parameter as if it were set in the
web.xml
file.
- setMethod(String) -
Method in class org.apache.commons.cactus.ServletTestRequest
-
- setServletName(String) -
Method in class org.apache.commons.cactus.server.ServletConfigWrapper
- Sets the servlet name.
- setURL(String, String, String, String, String) -
Method in class org.apache.commons.cactus.ServletTestRequest
- Sets the simulated URL.
- suite() -
Static method in class org.apache.commons.cactus.TestAll
-
- suite() -
Static method in class org.apache.commons.cactus.util.TestAssertUtils
-
AssertUtils
class.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |