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(String stateName, boolean expected)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddescribeMismatchSafely(States stateMachine, org.hamcrest.Description mismatchDescription)voiddescribeTo(org.hamcrest.Description description)static org.hamcrest.Matcher<States>isCurrently(String stateName)static org.hamcrest.Matcher<States>isNotCurrently(String stateName)booleanmatchesSafely(States stateMachine)
-
-
-
Constructor Detail
-
CurrentStateMatcher
public CurrentStateMatcher(String stateName, boolean expected)
-
-
Method Detail
-
matchesSafely
public boolean matchesSafely(States stateMachine)
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<States>
-
describeMismatchSafely
protected void describeMismatchSafely(States stateMachine, org.hamcrest.Description mismatchDescription)
- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<States>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
-