java.lang.Object
net.serenitybdd.rest.Ensure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnsureA helper method to make a RestAssured assertion appear as a separate step.
-
Constructor Details
-
Ensure
public Ensure()
-
-
Method Details
-
that
public static Ensure that(String description, Consumer<io.restassured.response.ValidatableResponse> check) A helper method to make a RestAssured assertion appear as a separate step. e.g Ensure.that("Commany name should be returned", response -> response.body("companyName", equalTo("Apple Inc.s")));- Parameters:
description-check-
-
andThat
-