public class MockMvcRestAssuredResponseImpl extends RestAssuredResponseOptionsImpl<MockMvcResponse> implements MockMvcResponse
groovyResponse| Constructor and Description |
|---|
MockMvcRestAssuredResponseImpl(org.springframework.test.web.servlet.ResultActions resultActions,
LogRepository logRepository) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.mock.web.MockHttpServletResponse |
getMockHttpServletResponse()
Return the
MockHttpServletResponse as returned by Spring MockMvc. |
org.springframework.test.web.servlet.MvcResult |
getMvcResult()
Return the
MvcResult as returned by Spring MockMvc. |
org.springframework.mock.web.MockHttpServletResponse |
mockHttpServletResponse()
Return the
MockHttpServletResponse as returned by Spring MockMvc. |
org.springframework.test.web.servlet.MvcResult |
mvcResult()
Return the
MvcResult as returned by Spring MockMvc. |
ValidatableMockMvcResponse |
then()
Returns a validatable response that's lets you validate the response.
|
andReturn, as, as, as, asByteArray, asInputStream, asString, asString, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getBody, getConfig, getConnectionManager, getContent, getContentType, getCookie, getCookies, getDefaultCharset, getDefaultContentType, getDetailedCookie, getDetailedCookies, getGroovyResponse, getHasExpectations, getHeader, getHeaders, getLogRepository, getResponseHeaders, getRpr, getSessionId, getSessionIdName, getStatusCode, getStatusLine, header, headers, htmlPath, jsonPath, jsonPath, path, peek, prettyPeek, prettyPrint, print, response, sessionId, setConfig, setConnectionManager, setContent, setContentType, setCookies, setDefaultCharset, setDefaultContentType, setGroovyResponse, setHasExpectations, setLogRepository, setResponseHeaders, setRpr, setSessionIdName, setStatusCode, setStatusLine, statusCode, statusLine, thenReturn, xmlPath, xmlPath, xmlPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpeek, prettyPeek, prettyPrint, printas, as, as, htmlPath, jsonPath, jsonPath, path, xmlPath, xmlPath, xmlPathasByteArray, asInputStream, asStringandReturn, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getBody, getContentType, getCookie, getCookies, getDetailedCookie, getDetailedCookies, getHeader, getHeaders, getSessionId, getStatusCode, getStatusLine, header, headers, sessionId, statusCode, statusLine, thenReturnpublic MockMvcRestAssuredResponseImpl(org.springframework.test.web.servlet.ResultActions resultActions,
LogRepository logRepository)
public ValidatableMockMvcResponse then()
MockMvcResponse
given().
param("firstName", "John").
param("lastName", "Doe").
when().
get("/greet").
then().
body("greeting", equalTo("John Doe"));
then in interface MockMvcResponsepublic org.springframework.test.web.servlet.MvcResult mvcResult()
MockMvcResponseMvcResult as returned by Spring MockMvc.
This method is the same as MockMvcResponse.getMvcResult() except for syntactic differences.
mvcResult in interface MockMvcResponseMvcResult as returned by Spring MockMvc.public org.springframework.test.web.servlet.MvcResult getMvcResult()
MockMvcResponseMvcResult as returned by Spring MockMvc.
This method is the same as MockMvcResponse.mvcResult() except for syntactic differences.
getMvcResult in interface MockMvcResponseMvcResult as returned by Spring MockMvc.public org.springframework.mock.web.MockHttpServletResponse mockHttpServletResponse()
MockMvcResponseMockHttpServletResponse as returned by Spring MockMvc.
This method is the same as MockMvcResponse.getMockHttpServletResponse() except for syntactic differences.
mockHttpServletResponse in interface MockMvcResponseMockHttpServletResponse as returned by Spring MockMvc.public org.springframework.mock.web.MockHttpServletResponse getMockHttpServletResponse()
MockMvcResponseMockHttpServletResponse as returned by Spring MockMvc.
This method is the same as MockMvcResponse.mockHttpServletResponse() except for syntactic differences.
getMockHttpServletResponse in interface MockMvcResponseMockHttpServletResponse as returned by Spring MockMvc.Copyright © 2010–2014. All rights reserved.