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 void
describeMismatchSafely
(States stateMachine, org.hamcrest.Description mismatchDescription) void
describeTo
(org.hamcrest.Description description) static org.hamcrest.Matcher
<States> isCurrently
(String stateName) static org.hamcrest.Matcher
<States> isNotCurrently
(String stateName) boolean
matchesSafely
(States stateMachine) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods 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:
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
-
isNotCurrently
-