Package | Description |
---|---|
org.springframework.test.web.servlet |
Contains server-side support for testing Spring MVC applications.
|
org.springframework.test.web.servlet.result |
Contains built-in
ResultMatcher and ResultHandler implementations. |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
Modifier and Type | Method and Description |
---|---|
ResultActions |
ResultActions.andDo(ResultHandler handler)
Provide a general action.
|
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) |
Modifier and Type | Class and Description |
---|---|
class |
PrintingResultHandler
Result handler that prints
MvcResult details to the "standard" output
stream. |
Modifier and Type | Method and Description |
---|---|
static ResultHandler |
MockMvcResultHandlers.print()
Print
MvcResult details to the "standard" output stream. |
Modifier and Type | Method and Description |
---|---|
<T extends Self> |
DefaultMockMvcBuilder.alwaysDo(ResultHandler resultHandler)
Define a global action that should always be applied to every
response.
|
Copyright © 2015. All rights reserved.