org.jmock.lib
Class CurrentStateMatcher

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

public class CurrentStateMatcher
extends org.hamcrest.TypeSafeMatcher<States>


Constructor Summary
CurrentStateMatcher(String stateName, boolean expected)
           
 
Method Summary
protected  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_, 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 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)


Copyright © 2003-2012 jMock. All Rights Reserved.