Class MockFilterChain

java.lang.Object
org.springframework.mock.web.MockFilterChain
All Implemented Interfaces:
FilterChain

public class MockFilterChain extends Object implements FilterChain
Mock implementation of the FilterChain interface.

A MockFilterChain can be configured with one or more filters and a Servlet 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 IllegalStateException unless reset() is called.

Since:
2.0.3
Author:
Juergen Hoeller, Rob Winch, Rossen Stoyanchev
See Also: