Mock implementation of the {@link javax.servlet.FilterChain} interface. Usedfor testing the web framework; also useful for testing custom {@link javax.servlet.Filter} implementations.
A {@link MockFilterChain} can be configured with one or more filters and aServlet to invoke. The first time the chain is called, it invokes all filters and the Servlet, and saves the request and response. Subsequent invocations raise an {@link IllegalStateException} unless {@link #reset()} is called. @author Juergen Hoeller @author Rob Winch @author Rossen Stoyanchev @since 2.0.3 @see MockFilterConfig @see PassThroughFilterChain
|
|
|
|
|
|
|
|
|
|