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, xmlPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
peek, prettyPeek, prettyPrint, print
as, as, as, htmlPath, jsonPath, jsonPath, path, xmlPath, xmlPath, xmlPath
asByteArray, asInputStream, asString
andReturn, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getBody, getContentType, getCookie, getCookies, getDetailedCookie, getDetailedCookies, getHeader, getHeaders, getSessionId, getStatusCode, getStatusLine, header, headers, sessionId, statusCode, statusLine, thenReturn
public 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 MockMvcResponse
public org.springframework.test.web.servlet.MvcResult mvcResult()
MockMvcResponse
MvcResult
as returned by Spring MockMvc.
This method is the same as MockMvcResponse.getMvcResult()
except for syntactic differences.
mvcResult
in interface MockMvcResponse
MvcResult
as returned by Spring MockMvc.public org.springframework.test.web.servlet.MvcResult getMvcResult()
MockMvcResponse
MvcResult
as returned by Spring MockMvc.
This method is the same as MockMvcResponse.mvcResult()
except for syntactic differences.
getMvcResult
in interface MockMvcResponse
MvcResult
as returned by Spring MockMvc.public org.springframework.mock.web.MockHttpServletResponse mockHttpServletResponse()
MockMvcResponse
MockHttpServletResponse
as returned by Spring MockMvc.
This method is the same as MockMvcResponse.getMockHttpServletResponse()
except for syntactic differences.
mockHttpServletResponse
in interface MockMvcResponse
MockHttpServletResponse
as returned by Spring MockMvc.public org.springframework.mock.web.MockHttpServletResponse getMockHttpServletResponse()
MockMvcResponse
MockHttpServletResponse
as returned by Spring MockMvc.
This method is the same as MockMvcResponse.mockHttpServletResponse()
except for syntactic differences.
getMockHttpServletResponse
in interface MockMvcResponse
MockHttpServletResponse
as returned by Spring MockMvc.Copyright © 2010–2014. All rights reserved.