Modifier and Type | Field and Description |
---|---|
private boolean |
expected |
private java.lang.String |
stateName |
Constructor and Description |
---|
CurrentStateMatcher(java.lang.String stateName,
boolean expected) |
Modifier and Type | Method and Description |
---|---|
protected void |
describeMismatchSafely(States stateMachine,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<States> |
isCurrently(java.lang.String stateName) |
static org.hamcrest.Matcher<States> |
isNotCurrently(java.lang.String stateName) |
boolean |
matchesSafely(States stateMachine) |
private final java.lang.String stateName
private final boolean expected
public CurrentStateMatcher(java.lang.String stateName, boolean expected)
public boolean matchesSafely(States stateMachine)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<States>
protected void describeMismatchSafely(States stateMachine, org.hamcrest.Description mismatchDescription)
describeMismatchSafely
in class org.hamcrest.TypeSafeMatcher<States>
public void describeTo(org.hamcrest.Description description)
public static org.hamcrest.Matcher<States> isCurrently(java.lang.String stateName)
public static org.hamcrest.Matcher<States> isNotCurrently(java.lang.String stateName)