Class MockMvcRestAssuredResponseImpl
java.lang.Object
io.restassured.internal.RestAssuredResponseOptionsImpl<MockMvcResponse>
io.restassured.module.mockmvc.internal.MockMvcRestAssuredResponseImpl
- All Implemented Interfaces:
MockMvcResponse,io.restassured.response.ExtractableResponse<MockMvcResponse>,io.restassured.response.ResponseBody<MockMvcResponse>,io.restassured.response.ResponseBodyData,io.restassured.response.ResponseBodyExtractionOptions,io.restassured.response.ResponseOptions<MockMvcResponse>,io.restassured.response.Validatable<ValidatableMockMvcResponse,MockMvcResponse>
public class MockMvcRestAssuredResponseImpl
extends io.restassured.internal.RestAssuredResponseOptionsImpl<MockMvcResponse>
implements MockMvcResponse
-
Field Summary
Fields inherited from class io.restassured.internal.RestAssuredResponseOptionsImpl
groovyResponse -
Constructor Summary
ConstructorsConstructorDescriptionMockMvcRestAssuredResponseImpl(org.springframework.test.web.servlet.ResultActions resultActions, io.restassured.internal.log.LogRepository logRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.mock.web.MockHttpServletResponseReturn theMockHttpServletResponseas returned by Spring MockMvc.org.springframework.test.web.servlet.MvcResultReturn theMvcResultas returned by Spring MockMvc.org.springframework.mock.web.MockHttpServletResponseReturn theMockHttpServletResponseas returned by Spring MockMvc.org.springframework.test.web.servlet.MvcResultReturn theMvcResultas returned by Spring MockMvc.then()Methods inherited from class io.restassured.internal.RestAssuredResponseOptionsImpl
andReturn, as, as, as, as, as, as, as, asByteArray, asInputStream, asPrettyString, asString, asString, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getApacheHttpContext, getBody, getConfig, getConnectionManager, getContent, getContentType, getCookie, getCookies, getDecoderConfig, getDefaultContentType, getDetailedCookie, getDetailedCookies, getFilterContextProperties, getGroovyResponse, getHasExpectations, getHeader, getHeaders, getLogRepository, getResponseHeaders, getRpr, getSessionId, getSessionIdName, getStatusCode, getStatusLine, getTime, getTimeIn, header, headers, htmlPath, isInputStream, jsonPath, jsonPath, path, peek, prettyPeek, prettyPrint, print, response, sessionId, setApacheHttpContext, setConfig, setConnectionManager, setContent, setContentType, setCookies, setDecoderConfig, setDefaultContentType, setFilterContextProperties, setGroovyResponse, setHasExpectations, setLogRepository, setResponseHeaders, setRpr, setSessionIdName, setStatusCode, setStatusLine, statusCode, statusLine, thenReturn, time, timeIn, xmlPath, xmlPath, xmlPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.restassured.response.ResponseBody
peek, prettyPeek, prettyPrint, printMethods inherited from interface io.restassured.response.ResponseBodyData
asByteArray, asInputStream, asPrettyString, asStringMethods inherited from interface io.restassured.response.ResponseBodyExtractionOptions
as, as, as, as, as, as, as, htmlPath, jsonPath, jsonPath, path, xmlPath, xmlPath, xmlPathMethods inherited from interface io.restassured.response.ResponseOptions
andReturn, body, contentType, cookie, cookies, detailedCookie, detailedCookies, getBody, getContentType, getCookie, getCookies, getDetailedCookie, getDetailedCookies, getHeader, getHeaders, getSessionId, getStatusCode, getStatusLine, getTime, getTimeIn, header, headers, sessionId, statusCode, statusLine, thenReturn, time, timeIn
-
Constructor Details
-
MockMvcRestAssuredResponseImpl
public MockMvcRestAssuredResponseImpl(org.springframework.test.web.servlet.ResultActions resultActions, io.restassured.internal.log.LogRepository logRepository)
-
-
Method Details
-
then
- Specified by:
thenin interfaceio.restassured.response.Validatable<ValidatableMockMvcResponse,MockMvcResponse>
-
mvcResult
public org.springframework.test.web.servlet.MvcResult mvcResult()Description copied from interface:MockMvcResponseReturn theMvcResultas returned by Spring MockMvc.This method is the same as
MockMvcResponse.getMvcResult()except for syntactic differences.- Specified by:
mvcResultin interfaceMockMvcResponse- Returns:
- The
MvcResultas returned by Spring MockMvc.
-
getMvcResult
public org.springframework.test.web.servlet.MvcResult getMvcResult()Description copied from interface:MockMvcResponseReturn theMvcResultas returned by Spring MockMvc.This method is the same as
MockMvcResponse.mvcResult()except for syntactic differences.- Specified by:
getMvcResultin interfaceMockMvcResponse- Returns:
- The
MvcResultas returned by Spring MockMvc.
-
mockHttpServletResponse
public org.springframework.mock.web.MockHttpServletResponse mockHttpServletResponse()Description copied from interface:MockMvcResponseReturn theMockHttpServletResponseas returned by Spring MockMvc.This method is the same as
MockMvcResponse.getMockHttpServletResponse()except for syntactic differences.- Specified by:
mockHttpServletResponsein interfaceMockMvcResponse- Returns:
- The
MockHttpServletResponseas returned by Spring MockMvc.
-
getMockHttpServletResponse
public org.springframework.mock.web.MockHttpServletResponse getMockHttpServletResponse()Description copied from interface:MockMvcResponseReturn theMockHttpServletResponseas returned by Spring MockMvc.This method is the same as
MockMvcResponse.mockHttpServletResponse()except for syntactic differences.- Specified by:
getMockHttpServletResponsein interfaceMockMvcResponse- Returns:
- The
MockHttpServletResponseas returned by Spring MockMvc.
-