Uses of Class
org.springframework.test.web.servlet.MockMvc
Packages that use MockMvc
Package
Description
Contains client-side REST testing support.
Contains server-side support for testing Spring MVC applications.
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling.Server-side support for testing Spring MVC applications with
MockMvc
and HtmlUnit.Server-side support for testing Spring MVC applications with
MockMvc
and the Selenium HtmlUnitDriver.Contains built-in
MockMvcBuilder implementations.-
Uses of MockMvc in org.springframework.test.web.client
Constructors in org.springframework.test.web.client with parameters of type MockMvc -
Uses of MockMvc in org.springframework.test.web.servlet
Methods in org.springframework.test.web.servlet that return MockMvcModifier and TypeMethodDescriptionMockMvcBuilder.build()Build aMockMvcinstance.protected final MockMvcMockMvcBuilderSupport.createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, Charset defaultResponseCharacterEncoding, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, List<DispatcherServletCustomizer> dispatcherServletCustomizers) Delegates toMockMvcBuilderSupport.createMockMvc(Filter[], MockServletConfig, WebApplicationContext, RequestBuilder, List, List, List)for creation of theMockMvcinstance and configures that instance with the supplieddefaultResponseCharacterEncoding.protected final MockMvcMockMvcBuilderSupport.createMockMvc(Filter[] filters, MockServletConfig servletConfig, WebApplicationContext webAppContext, RequestBuilder defaultRequestBuilder, List<ResultMatcher> globalResultMatchers, List<ResultHandler> globalResultHandlers, List<DispatcherServletCustomizer> dispatcherServletCustomizers) -
Uses of MockMvc in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client with parameters of type MockMvcModifier and TypeMethodDescriptionstatic WebTestClient.BuilderBegin creating aWebTestClientby providing an already initializedMockMvcinstance to use as the server.Constructors in org.springframework.test.web.servlet.client with parameters of type MockMvc -
Uses of MockMvc in org.springframework.test.web.servlet.htmlunit
Methods in org.springframework.test.web.servlet.htmlunit with parameters of type MockMvcModifier and TypeMethodDescriptionstatic MockMvcWebClientBuilderMockMvcWebClientBuilder.mockMvcSetup(MockMvc mockMvc) Create a newMockMvcWebClientBuilderbased on the suppliedMockMvcinstance.Constructors in org.springframework.test.web.servlet.htmlunit with parameters of type MockMvcModifierConstructorDescriptionprotectedMockMvcWebClientBuilder(MockMvc mockMvc) MockMvcWebConnection(MockMvc mockMvc, com.gargoylesoftware.htmlunit.WebClient webClient) Create a new instance that assumes the context path of the application is""(i.e., the root context).MockMvcWebConnection(MockMvc mockMvc, com.gargoylesoftware.htmlunit.WebClient webClient, String contextPath) Create a new instance with the specified context path.protectedCreate a new instance using the suppliedMockMvcinstance. -
Uses of MockMvc in org.springframework.test.web.servlet.htmlunit.webdriver
Methods in org.springframework.test.web.servlet.htmlunit.webdriver with parameters of type MockMvcModifier and TypeMethodDescriptionstatic MockMvcHtmlUnitDriverBuilderMockMvcHtmlUnitDriverBuilder.mockMvcSetup(MockMvc mockMvc) Create a newMockMvcHtmlUnitDriverBuilderbased on the suppliedMockMvcinstance.Constructors in org.springframework.test.web.servlet.htmlunit.webdriver with parameters of type MockMvc -
Uses of MockMvc in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup that return MockMvc