Mock ServletContext object for low-level unit tests of Struts controller components. Coarser grained tests should be implemented in terms of the Cactus framework, instead of the mock object classes.
WARNING - Only the minimal set of methods needed to create unit tests is provided, plus additional methods to configure this object as necessary. Methods for unsupported operations will throw UnsupportedOperationException
.
WARNING - Because unit tests operate in a single threaded environment, no synchronization is performed.
@version $Rev: 421119 $ $Date: 2005-05-07 12:45:39 -0400 (Sat, 07 May 2005)$Used for testing the web framework; only necessary for testing applications when testing custom JSP tags.
Note: Expects initialization via the constructor rather than via the PageContext.initialize
method. Does not support writing to a JspWriter, request dispatching, and handlePageException
calls.
@author Juergen Hoeller
@since 1.0.2
Used for testing the web framework; only necessary for testing applications when testing custom JSP tags.
Note: Expects initialization via the constructor rather than via the {@code PageContext.initialize} method. Does not support writing toa JspWriter, request dispatching, and {@code handlePageException} calls. @author Juergen Hoeller @since 1.0.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|