
io.magentys.AgentVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cherry Show documentation
Show all versions of cherry Show documentation
A syntactical sugar project for BDD oriented tests
package io.magentys;
import org.hamcrest.Matcher;
import static org.hamcrest.MatcherAssert.assertThat;
public class AgentVerifier {
public Agent getAgent() {
return agent;
}
protected final Agent agent;
public AgentVerifier(Agent agent) {
this.agent = agent;
}
public static AgentVerifier verifyAs(Agent agent) {
return new AgentVerifier(agent);
}
public void that(Mission obj, Matcher objectMatcher) {
assertThat(obj.accomplishAs(agent), objectMatcher);
}
public void that(TYPE obj, Matcher objectMatcher) {
assertThat(obj, objectMatcher);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy