Uses of Class
org.springframework.test.web.reactive.server.assertj.WebTestClientResponseAssert
Packages that use WebTestClientResponseAssert
Package
Description
AssertJ support for WebTestClient.
-
Uses of WebTestClientResponseAssert in org.springframework.test.web.reactive.server.assertj
Subclasses with type arguments of type WebTestClientResponseAssert in org.springframework.test.web.reactive.server.assertjModifier and TypeClassDescriptionclassAssertJ assertions for the result from aWebTestClientexchange.Subinterfaces with type arguments of type WebTestClientResponseAssert in org.springframework.test.web.reactive.server.assertjModifier and TypeInterfaceDescriptioninterfaceAssertProviderforWebTestClientResponseAssertthat holds the result of an exchange performed throughWebTestClient.Methods in org.springframework.test.web.reactive.server.assertj that return WebTestClientResponseAssertModifier and TypeMethodDescriptionWebTestClientResponseAssert.containsHeader(String name) Verify that the response contains a header with the givenname.WebTestClientResponseAssert.doesNotContainHeader(String name) Verify that the response does not contain a header with the givenname.WebTestClientResponseAssert.hasBodyTextEqualTo(String bodyText) Verify that the response body is equal to the given value.WebTestClientResponseAssert.hasContentType(String contentType) Verify that the response'sContent-Typeis equal to the given string representation.WebTestClientResponseAssert.hasContentType(org.springframework.http.MediaType contentType) Verify that the response'sContent-Typeis equal to the given value.WebTestClientResponseAssert.hasContentTypeCompatibleWith(String contentType) Verify that the response'sContent-Typeis compatible with the given string representation.WebTestClientResponseAssert.hasContentTypeCompatibleWith(org.springframework.http.MediaType contentType) Verify that the response'sContent-Typeis compatible with the given value.Verify that the response contains a header with the givennameand primaryvalue.WebTestClientResponseAssert.hasStatus(int status) Verify that the HTTP status is equal to the specified status code.WebTestClientResponseAssert.hasStatus(org.springframework.http.HttpStatus status) Verify that the HTTP status is equal to the specified status.WebTestClientResponseAssert.hasStatus1xxInformational()Verify that the HTTP status code is in the 1xx range.WebTestClientResponseAssert.hasStatus2xxSuccessful()Verify that the HTTP status code is in the 2xx range.WebTestClientResponseAssert.hasStatus3xxRedirection()Verify that the HTTP status code is in the 3xx range.WebTestClientResponseAssert.hasStatus4xxClientError()Verify that the HTTP status code is in the 4xx range.WebTestClientResponseAssert.hasStatus5xxServerError()Verify that the HTTP status code is in the 5xx range.WebTestClientResponseAssert.hasStatusOk()Verify that the HTTP status is equal toHttpStatus.OK.