public class CurrentStateMatcher extends TypeSafeMatcher<States>
Constructor and Description |
---|
CurrentStateMatcher(String stateName,
boolean expected) |
Modifier and Type | Method and Description |
---|---|
protected void |
describeMismatchSafely(States stateMachine,
Description mismatchDescription) |
void |
describeTo(Description description) |
static Matcher<States> |
isCurrently(String stateName) |
static Matcher<States> |
isNotCurrently(String stateName) |
boolean |
matchesSafely(States stateMachine) |
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public CurrentStateMatcher(String stateName, boolean expected)
public boolean matchesSafely(States stateMachine)
matchesSafely
in class TypeSafeMatcher<States>
protected void describeMismatchSafely(States stateMachine, Description mismatchDescription)
describeMismatchSafely
in class TypeSafeMatcher<States>
public void describeTo(Description description)