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

io.magentys.AgentVerifier Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
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