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, parser, root, root, rootPath, rootPath, spec, status, statusCode, statusCode, statusLine, statusLine, time, time, using
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, parser, root, root, rootPath, rootPath, spec, statusCode, statusCode, statusLine, statusLine, time, time, using
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)
public ValidatableWebTestClientResponse status(org.springframework.http.HttpStatus expectedStatus)
ValidatableWebTestClientResponse
get("/something").then().assertThat().status(HttpStatus.OK);
status
in interface ValidatableWebTestClientResponse
expectedStatus
- The expected status.public WebTestClientResponse originalResponse()
originalResponse
in class io.restassured.internal.ValidatableResponseOptionsImpl<ValidatableWebTestClientResponse,WebTestClientResponse>
Copyright © 2010–2022. All rights reserved.