Package org.jmock.lib
Class CurrentStateMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<States>,org.hamcrest.SelfDescribing
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Field Details
-
stateName
-
expected
private final boolean expected
-
-
Constructor Details
-
CurrentStateMatcher
-
-
Method Details
-
matchesSafely
- 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) -
isCurrently
-
isNotCurrently
-