org.jmock.lib

## Class CurrentStateMatcher

- java.lang.Object
- - org.hamcrest.BaseMatcher<T>
  - - org.hamcrest.TypeSafeMatcher<States>
    - - org.jmock.lib.CurrentStateMatcher

All Implemented Interfaces:
  Matcher<States>, SelfDescribing

    public class CurrentStateMatcher
    extends TypeSafeMatcher<States>

### Constructor Summary

Constructors
Constructor and Description
`CurrentStateMatcher(String stateName, boolean expected)`

### Method Summary

Methods
`protected void` `describeMismatchSafely(States stateMachine, Description mismatchDescription)`
`void` `describeTo(Description description)`
`static Matcher<States>` `isCurrently(String stateName)`
`static 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_, toString`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### CurrentStateMatcher

    public CurrentStateMatcher(String stateName,
                       boolean expected)

### Method Detail

#### matchesSafely

    public boolean matchesSafely(States stateMachine)

Specified by:
  `matchesSafely` in class `TypeSafeMatcher<States>`

#### describeMismatchSafely

    protected void describeMismatchSafely(States stateMachine,
                              Description mismatchDescription)

Overrides:
  `describeMismatchSafely` in class `TypeSafeMatcher<States>`

#### describeTo

    public void describeTo(Description description)

#### isCurrently

    public static Matcher<States> isCurrently(String stateName)

#### isNotCurrently

    public static Matcher<States> isNotCurrently(String stateName)