io.magentys.FunctionalVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cherry-java8 Show documentation
Show all versions of cherry-java8 Show documentation
A syntactical sugar project for BDD oriented tests
package io.magentys;
import io.magentys.functional.Functions;
import org.hamcrest.Matcher;
import static org.junit.Assert.assertThat;
/**
* Created by kostasmamalis on 29/04/16.
*/
public class FunctionalVerifier extends AgentVerifier {
public FunctionalVerifier(FunctionalAgent agent) {
super(agent);
}
public static FunctionalVerifier verifyAsFunctional(FunctionalAgent agent) {
return new FunctionalVerifier(agent);
}
public void that(Functions.FunctionalMission obj, Matcher objectMatcher) {
assertThat(obj.apply((FunctionalAgent) agent), objectMatcher);
}
public void that(Functions.FunctionalMission1 func, Input1 input, Matcher