Package org.jmock.lib

Class CurrentStateMatcher

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<States>
org.jmock.lib.CurrentStateMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<States>, org.hamcrest.SelfDescribing

public class CurrentStateMatcher extends org.hamcrest.TypeSafeMatcher<States>
  • Field Details

    • stateName

      private final String stateName
    • expected

      private final boolean expected
  • Constructor Details

    • CurrentStateMatcher

      public CurrentStateMatcher(String stateName, boolean expected)
  • Method Details

    • matchesSafely

      public boolean matchesSafely(States stateMachine)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<States>
    • describeMismatchSafely

      protected void describeMismatchSafely(States stateMachine, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<States>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • isCurrently

      public static org.hamcrest.Matcher<States> isCurrently(String stateName)
    • isNotCurrently

      public static org.hamcrest.Matcher<States> isNotCurrently(String stateName)