Uses of Class
org.springframework.test.web.servlet.MockMvc
Packages that use MockMvc Package Description org.springframework.test.web.client Contains client-side REST testing support.org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet.htmlunit Server-side support for testing Spring MVC applications withMockMvc
and HtmlUnit.org.springframework.test.web.servlet.htmlunit.webdriver Server-side support for testing Spring MVC applications withMockMvc
and the SeleniumHtmlUnitDriver
.org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilder
implementations.Uses of MockMvc in org.springframework.test.web.client
Constructors in org.springframework.test.web.client with parameters of type MockMvc Constructor Description MockMvcClientHttpRequestFactory(MockMvc mockMvc)
Uses of MockMvc in org.springframework.test.web.servlet
Methods in org.springframework.test.web.servlet that return MockMvc Modifier and Type Method Description MockMvc
MockMvcBuilder. build()
Build aMockMvc
instance.protected MockMvc
MockMvcBuilderSupport. 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.htmlunit
Methods in org.springframework.test.web.servlet.htmlunit with parameters of type MockMvc Modifier and Type Method Description static MockMvcWebClientBuilder
MockMvcWebClientBuilder. mockMvcSetup(MockMvc mockMvc)
Create a newMockMvcWebClientBuilder
based on the suppliedMockMvc
instance.Constructors in org.springframework.test.web.servlet.htmlunit with parameters of type MockMvc Constructor Description MockMvcWebClientBuilder(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.MockMvcWebConnectionBuilderSupport(MockMvc mockMvc)
Create a new instance using the suppliedMockMvc
instance.Uses of MockMvc in org.springframework.test.web.servlet.htmlunit.webdriver
Methods in org.springframework.test.web.servlet.htmlunit.webdriver with parameters of type MockMvc Modifier and Type Method Description static MockMvcHtmlUnitDriverBuilder
MockMvcHtmlUnitDriverBuilder. mockMvcSetup(MockMvc mockMvc)
Create a newMockMvcHtmlUnitDriverBuilder
based on the suppliedMockMvc
instance.Constructors in org.springframework.test.web.servlet.htmlunit.webdriver with parameters of type MockMvc Constructor Description MockMvcHtmlUnitDriverBuilder(MockMvc mockMvc)
Uses of MockMvc in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup that return MockMvc Modifier and Type Method Description MockMvc
AbstractMockMvcBuilder. build()
Build aMockMvc
instance.