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.result |
Contains built-in
ResultMatcher and ResultHandler implementations. |
Modifier and Type | Method and Description |
---|---|
MvcResult |
ResultActions.andReturn()
Return the result of the executed request for direct access to the results.
|
Modifier and Type | Method and Description |
---|---|
void |
ResultHandler.handle(MvcResult result)
Perform an action on the given result.
|
void |
ResultMatcher.match(MvcResult result)
Assert the result of an executed request.
|
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 |
---|---|
void |
PrintingResultHandler.handle(MvcResult result)
Print
MvcResult details. |
protected void |
PrintingResultHandler.printAsyncResult(MvcResult result) |