java.lang.Object
net.serenitybdd.rest.Ensure

public class Ensure extends Object
  • 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

      public Ensure andThat(String description, Consumer<io.restassured.response.ValidatableResponse> check)