Package | Description |
---|---|
org.springframework.test.web.servlet |
Contains server-side support for testing Spring MVC applications.
|
org.springframework.test.web.servlet.request |
Contains built-in
RequestBuilder
implementations. |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
Modifier and Type | Method and Description |
---|---|
protected MockMvc |
MockMvcBuilderSupport.createMockMvc(javax.servlet.Filter[] filters,
MockServletConfig servletConfig,
WebApplicationContext webAppContext,
RequestBuilder defaultRequestBuilder,
List<ResultMatcher> globalResultMatchers,
List<ResultHandler> globalResultHandlers,
Boolean dispatchOptions) |
ResultActions |
MockMvc.perform(RequestBuilder requestBuilder)
Perform a request and return a type that allows chaining further
actions, such as asserting expectations, on the result.
|
Modifier and Type | Class and Description |
---|---|
class |
MockHttpServletRequestBuilder
Default builder for
MockHttpServletRequest required as input to
perform request in MockMvc . |
class |
MockMultipartHttpServletRequestBuilder
Default builder for
MockMultipartHttpServletRequest . |
Modifier and Type | Method and Description |
---|---|
static RequestBuilder |
MockMvcRequestBuilders.asyncDispatch(MvcResult mvcResult)
Create a
RequestBuilder for an async dispatch from the
MvcResult of the request that started async processing. |
Modifier and Type | Method and Description |
---|---|
<T extends Self> |
DefaultMockMvcBuilder.defaultRequest(RequestBuilder requestBuilder)
Define default request properties that should be merged into all
performed requests.
|
Copyright © 2015. All rights reserved.