public interface ValidatableWebTestClientResponse extends io.restassured.response.ValidatableResponseOptions<ValidatableWebTestClientResponse,WebTestClientResponse>
WebTestClient.ResponseSpec
so that user can make subsequent assertions using the
WebTestClient.ResponseSpec
API.Modifier and Type | Method and Description |
---|---|
ValidatableWebTestClientResponse |
status(org.springframework.http.HttpStatus expectedStatus)
Validate that the response status matches an Spring-Framework HttpStatus.
|
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
ValidatableWebTestClientResponse status(org.springframework.http.HttpStatus expectedStatus)
get("/something").then().assertThat().status(HttpStatus.OK);
expectedStatus
- The expected status.Copyright © 2010–2022. All rights reserved.