Package org.springframework.mock.web
@NonNullApi
@NonNullFields
package org.springframework.mock.web
A comprehensive set of Servlet API 6.0 mock objects, targeted at usage with
Spring's Web MVC framework.
Useful for testing web contexts and controllers.
-
ClassesClassDescriptionDelegating implementation of
ServletInputStream.Delegating implementation ofServletOutputStream.Mock implementation of theAsyncContextinterface.Mock implementation of theBodyContentclass.Extension ofCookiewith extra attributes, as defined in RFC 6265.Mock implementation of theFilterChaininterface.Mock implementation of theFilterConfiginterface.Mock implementation ofHttpServletMapping.Mock implementation of theHttpServletRequestinterface.Mock implementation of theHttpServletResponseinterface.Mock implementation of theHttpSessioninterface.Mock implementation of theJspWriterclass.Mock implementation of theMultipartFileinterface.Mock implementation of theMultipartHttpServletRequestinterface.Mock implementation of thePageContextinterface.Mock implementation ofjakarta.servlet.http.Part.Mock implementation of theRequestDispatcherinterface.Mock implementation of theServletConfiginterface.Mock implementation of theServletContextinterface.Mock implementation of theSessionCookieConfiginterface.Implementation of theFilterConfiginterface which simply passes the call through to a given Filter/FilterChain combination (indicating the next Filter in the chain along with the FilterChain that it is supposed to work on) or to a given Servlet (indicating the end of the chain).