|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
ServletExceptionWrapper except that this exception class
extends JUnit AssertionFailedError so that JUnit will
print a different message in it's runner console.setUp() and tearDown()
methods of the class to test on the server side.setUp method if it exists.
tearDown method if it exists.
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 J2EEUnit.HttpServletResponse object that you can access from
the testXXX(), setUp and tearDown()
methods.
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 j2eeunit.ServletURL
- Creates the URL to simulate.
- session -
Variable in class j2eeunit.ServletTestCase
- Valid
HttpSession object that you can access from
the testXXX(), setUp and tearDown()
methods.
- setAttribute(String, Object) -
Method in class j2eeunit.server.ServletContextWrapper
-
- setAttribute(String, Object) -
Method in class j2eeunit.server.HttpServletRequestWrapper
-
- setAutomaticSession(boolean) -
Method in class j2eeunit.ServletTestRequest
-
- setCharacterEncoding(String) -
Method in class j2eeunit.server.HttpServletRequestWrapper
-
- setInitParameter(String, String) -
Method in class j2eeunit.server.ServletConfigWrapper
- Sets a parameter as if it were set in the
web.xml file.
- setMethod(String) -
Method in class j2eeunit.ServletTestRequest
-
- setServletName(String) -
Method in class j2eeunit.server.ServletConfigWrapper
- Sets the servlet name.
- setURL(String, String, String, String, String) -
Method in class j2eeunit.ServletTestRequest
- Sets the simulated URL.
- suite() -
Static method in class j2eeunit.TestAll
-
- suite() -
Static method in class j2eeunit.util.TestAssertUtils
-
AssertUtils class.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||