|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
MockBaseConfig | Common parent class for both MockServletConfig and MockFilterConfig since they are both essentially the same with a couple of method names changed. |
MockFilterChain | Mock implementation of a filter chain that allows a number of filters to be called before finally invoking the servlet that is the target of the request. |
MockFilterConfig | Mock implementation of the FilterConfig interface from the Http Servlet spec. |
MockHttpServletRequest | Mock implementation of an HttpServletRequest object. |
MockHttpServletResponse | Mock implementation of an HttpServletResponse. |
MockHttpSession | Simple mock implementation of HttpSession that implements most basic operations. |
MockRequestDispatcher | Mock implementation of a RequesetDispatcher used for testing purposes. |
MockRoundtrip | Mock object that attempts to make it easier to use the other Mock objects in this package to interact with Stripes and to interrogate the results. |
MockServletConfig | Mock implementation of a Servlet Config. |
MockServletContext | Mock implementation of a ServletContext. |
MockServletOutputStream | Mock implementation of a ServletOutputStream that just uses a byte array output stream to capture any output and make it available after the test is done. |
Mock objects that implement many of the Servlet and Http Servlet interfaces. These classes allow for the standalone testing of ActionBeans in their native habitat without the need to deploy anything to a Servlet container.
The two classes of most interest are MockServletContext which provides a simple mock implementation of a servlet context that can accept requests and process them, and MockRoundtrip which encapsulates several mock objects to provide an easy to use interface to generate a request to an ActionBean, process it and then verify the results.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |