Package org.jmock.lib
Class CurrentStateMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<States>
-
- org.jmock.lib.CurrentStateMatcher
-
-
Constructor Summary
Constructors Constructor Description CurrentStateMatcher(java.lang.String stateName, boolean expected)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
matchesSafely
public boolean matchesSafely(States stateMachine)
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<States>
-
describeMismatchSafely
protected void describeMismatchSafely(States stateMachine, org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<States>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
isCurrently
public static org.hamcrest.Matcher<States> isCurrently(java.lang.String stateName)
-
isNotCurrently
public static org.hamcrest.Matcher<States> isNotCurrently(java.lang.String stateName)
-
-