java.lang.Object
net.serenitybdd.screenplay.rest.interactions.Ensure
All Implemented Interfaces:
SkipNested, Interaction, Performable

public class Ensure
extends java.lang.Object
implements Interaction
  • Constructor Summary

    Constructors
    Constructor Description
    Ensure​(java.lang.String description, java.util.function.Consumer<io.restassured.response.ValidatableResponse> check)  
  • Method Summary

    Modifier and Type Method Description
    <T extends Actor>
    void
    performAs​(T actor)  
    static Ensure that​(java.lang.String description, java.util.function.Consumer<io.restassured.response.ValidatableResponse> check)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.serenitybdd.screenplay.Performable

    then
  • Constructor Details

    • Ensure

      public Ensure​(java.lang.String description, java.util.function.Consumer<io.restassured.response.ValidatableResponse> check)
  • Method Details

    • performAs

      public <T extends Actor> void performAs​(T actor)
      Specified by:
      performAs in interface Performable
    • that

      public static Ensure that​(java.lang.String description, java.util.function.Consumer<io.restassured.response.ValidatableResponse> check)