Uses of Class
org.apache.juneau.rest.client.assertion.ResponseAssertion
Packages that use ResponseAssertion
Package
Description
Next-generation REST client — transport-agnostic HTTP client built on Juneau's serialization stack.
Fluent assertion classes for HTTP response validation in the REST client.
-
Uses of ResponseAssertion in org.apache.juneau.rest.client
Methods in org.apache.juneau.rest.client that return ResponseAssertionModifier and TypeMethodDescriptionRestResponse.assertThat()Returns a fluent assertion object for this response. -
Uses of ResponseAssertion in org.apache.juneau.rest.client.assertion
Methods in org.apache.juneau.rest.client.assertion that return ResponseAssertionModifier and TypeMethodDescriptionResponseBodyAssertion.and()Returns the parentResponseAssertionto continue assertion chaining.ResponseHeaderAssertion.and()Returns the parentResponseAssertionto continue assertion chaining.ResponseAssertion.isClientError()Asserts that the response status code is in the 4xx (client error) range.ResponseAssertion.isOk()Asserts that the response status code is in the 2xx (success) range.ResponseAssertion.isServerError()Asserts that the response status code is in the 5xx (server error) range.ResponseAssertion.statusCode(int expected) Asserts that the response status code equals the expected value.