Class ValidatableWebTestClientResponseImpl
java.lang.Object
io.restassured.internal.ValidatableResponseOptionsImpl<ValidatableWebTestClientResponse,WebTestClientResponse>
io.restassured.module.webtestclient.internal.ValidatableWebTestClientResponseImpl
- All Implemented Interfaces:
ValidatableWebTestClientResponse,io.restassured.response.ValidatableResponseLogSpec<ValidatableWebTestClientResponse,,WebTestClientResponse> io.restassured.response.ValidatableResponseOptions<ValidatableWebTestClientResponse,WebTestClientResponse>
public class ValidatableWebTestClientResponseImpl
extends io.restassured.internal.ValidatableResponseOptionsImpl<ValidatableWebTestClientResponse,WebTestClientResponse>
implements ValidatableWebTestClientResponse
-
Field Summary
Fields inherited from class io.restassured.internal.ValidatableResponseOptionsImpl
responseSpec -
Constructor Summary
ConstructorsConstructorDescriptionValidatableWebTestClientResponseImpl(org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec responseSpec, io.restassured.internal.ResponseParserRegistrar responseParserRegistrar, io.restassured.config.RestAssuredConfig config, WebTestClientResponse response, io.restassured.response.ExtractableResponse<WebTestClientResponse> extractableResponse, io.restassured.internal.log.LogRepository logRepository) -
Method Summary
Modifier and TypeMethodDescriptionstatus(org.springframework.http.HttpStatus expectedStatus) Validate that the response status matches an Spring-Framework HttpStatus.Methods inherited from class io.restassured.internal.ValidatableResponseOptionsImpl
all, all, and, appendRootPath, appendRootPath, assertThat, body, body, body, body, body, body, body, body, body, content, contentType, contentType, contentType, cookie, cookie, cookie, cookie, cookies, cookies, cookies, defaultParser, detachRootPath, everything, everything, extract, header, header, header, header, headers, headers, headers, ifError, ifStatusCodeIsEqualTo, ifStatusCodeMatches, ifValidationFails, ifValidationFails, ifValidationFails, log, noRoot, noRootPath, onFailMessage, parser, root, root, rootPath, rootPath, spec, status, statusCode, statusCode, statusLine, statusLine, time, time, usingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.restassured.response.ValidatableResponseOptions
and, appendRoot, appendRoot, appendRootPath, appendRootPath, assertThat, body, body, body, body, body, body, body, contentType, contentType, contentType, cookie, cookie, cookie, cookie, cookies, cookies, defaultParser, detachRoot, detachRootPath, extract, header, header, header, header, headers, headers, log, noRoot, noRootPath, onFailMessage, parser, root, root, rootPath, rootPath, spec, statusCode, statusCode, statusLine, statusLine, time, time, using
-
Constructor Details
-
ValidatableWebTestClientResponseImpl
public ValidatableWebTestClientResponseImpl(org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec responseSpec, io.restassured.internal.ResponseParserRegistrar responseParserRegistrar, io.restassured.config.RestAssuredConfig config, WebTestClientResponse response, io.restassured.response.ExtractableResponse<WebTestClientResponse> extractableResponse, io.restassured.internal.log.LogRepository logRepository)
-
-
Method Details
-
status
Description copied from interface:ValidatableWebTestClientResponseValidate that the response status matches an Spring-Framework HttpStatus. E.g.get("/something").then().assertThat().status(HttpStatus.OK);- Specified by:
statusin interfaceValidatableWebTestClientResponse- Parameters:
expectedStatus- The expected status.- Returns:
- the response specification
-
originalResponse
- Specified by:
originalResponsein classio.restassured.internal.ValidatableResponseOptionsImpl<ValidatableWebTestClientResponse,WebTestClientResponse>
-