All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.GivenWhenThen Maven / Gradle / Ivy

There is a newer version: 1.1.26-rc.1
Show newest version
package net.serenitybdd.screenplay;

import org.hamcrest.Matcher;

import static org.hamcrest.MatcherAssert.assertThat;

public class GivenWhenThen {
    public static  T givenThat(T actor) {
        return actor;
    }
    public static Actor andThat(Actor actor) {return actor; }

    public static Actor when(Actor actor) {  return actor; }
    public static Actor then(Actor actor) { return actor; }
    public static Actor and(Actor actor) { return actor; }
    public static Actor but(Actor actor) { return actor; }

    public static  void then(T actual, Matcher matcher) {
        assertThat(actual, matcher);
    }

    public static  Consequence seeThat(Question actual, Matcher expected) {
        return new QuestionConsequence(actual, expected);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy