| Package | Description |
|---|---|
| org.springframework.mock.web |
A comprehensive set of Servlet API 3.0 mock objects,
targeted at usage with Spring's Web MVC framework.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
protected MockHttpServletResponse |
MockRequestDispatcher.getMockHttpServletResponse(ServletResponse response)
Obtain the underlying
MockHttpServletResponse, unwrapping
HttpServletResponseWrapper decorators if necessary. |
| Modifier and Type | Method and Description |
|---|---|
MockHttpServletResponse |
MvcResult.getResponse()
Return the resulting response.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpHeaders |
PrintingResultHandler.getResponseHeaders(MockHttpServletResponse response) |
protected void |
PrintingResultHandler.printResponse(MockHttpServletResponse response)
Print the response.
|