Package org.springframework.mock.web
@NullMarked
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.
-
ClassDescriptionDelegating implementation of
ServletInputStream
.Delegating implementation ofServletOutputStream
.Mock implementation of theAsyncContext
interface.Mock implementation of theBodyContent
class.Extension ofCookie
with extra attributes, as defined in RFC 6265.Mock implementation of theFilterChain
interface.Mock implementation of theFilterConfig
interface.Mock implementation ofFilterRegistration
.Mock implementation ofHttpServletMapping
.Mock implementation of theHttpServletRequest
interface.Mock implementation of theHttpServletResponse
interface.Mock implementation of theHttpSession
interface.Mock implementation of theJspWriter
class.Mock implementation of theMultipartFile
interface.Mock implementation of theMultipartHttpServletRequest
interface.Mock implementation of thePageContext
interface.Mock implementation ofjakarta.servlet.http.Part
.Mock implementation of theRequestDispatcher
interface.Mock implementation of theServletConfig
interface.Mock implementation of theServletContext
interface.Mock implementation of theSessionCookieConfig
interface.Implementation of theFilterChain
interface 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).