org.jmock.lib
Class CurrentStateMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<States>
org.jmock.lib.CurrentStateMatcher
- All Implemented Interfaces:
- Matcher<States>, SelfDescribing
public class CurrentStateMatcher
- extends TypeSafeMatcher<States>
CurrentStateMatcher
public CurrentStateMatcher(String stateName,
boolean expected)
matchesSafely
public boolean matchesSafely(States stateMachine)
- Specified by:
matchesSafely
in class TypeSafeMatcher<States>
describeMismatchSafely
protected void describeMismatchSafely(States stateMachine,
Description mismatchDescription)
- Overrides:
describeMismatchSafely
in class TypeSafeMatcher<States>
describeTo
public void describeTo(Description description)
isCurrently
public static Matcher<States> isCurrently(String stateName)
isNotCurrently
public static Matcher<States> isNotCurrently(String stateName)