Interface ValidatableWebTestClientResponse

All Superinterfaces:
io.restassured.response.ValidatableResponseOptions<ValidatableWebTestClientResponse,WebTestClientResponse>
All Known Implementing Classes:
ValidatableWebTestClientResponseImpl

public interface ValidatableWebTestClientResponse extends io.restassured.response.ValidatableResponseOptions<ValidatableWebTestClientResponse,WebTestClientResponse>
A validatable response of a request made by REST Assured WebTestClient. Returns an instance of WebTestClient.ResponseSpec so that user can make subsequent assertions using the WebTestClient.ResponseSpec API.
  • Method Summary

    Modifier and Type
    Method
    Description
    status(org.springframework.http.HttpStatus expectedStatus)
    Validate that the response status matches an Spring-Framework HttpStatus.

    Methods 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
  • Method Details

    • status

      ValidatableWebTestClientResponse status(org.springframework.http.HttpStatus expectedStatus)
      Validate that the response status matches an Spring-Framework HttpStatus. E.g.
       get("/something").then().assertThat().status(HttpStatus.OK);
       

      Parameters:
      expectedStatus - The expected status.
      Returns:
      the response specification