public class ValidatableWebTestClientResponseImpl extends io.restassured.internal.ValidatableResponseOptionsImpl<ValidatableWebTestClientResponse,WebTestClientResponse> implements ValidatableWebTestClientResponse
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
WebTestClientResponse |
originalResponse() |
ValidatableWebTestClientResponse |
status(org.springframework.http.HttpStatus expectedStatus)
Validate that the response status matches an Spring-Framework HttpStatus.
|
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, usingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, 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, usingpublic 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)
public ValidatableWebTestClientResponse status(org.springframework.http.HttpStatus expectedStatus)
ValidatableWebTestClientResponse
get("/something").then().assertThat().status(HttpStatus.OK);
status in interface ValidatableWebTestClientResponseexpectedStatus - The expected status.public WebTestClientResponse originalResponse()
originalResponse in class io.restassured.internal.ValidatableResponseOptionsImpl<ValidatableWebTestClientResponse,WebTestClientResponse>Copyright © 2010–2023. All rights reserved.