Package org.jmock.internal
Class StateMachine
- java.lang.Object
-
- org.jmock.internal.StateMachine
-
- All Implemented Interfaces:
org.hamcrest.SelfDescribing
,States
,StatesClause
public class StateMachine extends Object implements States
-
-
Constructor Summary
Constructors Constructor Description StateMachine(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
become(String nextState)
Put the state machine into state nextState.void
describeTo(org.hamcrest.Description description)
State
is(String state)
StatePredicate
isNot(String state)
States
startsAs(String initialState)
Put the state machine into state initialState.String
toString()
-
-
-
Constructor Detail
-
StateMachine
public StateMachine(String name)
-
-
Method Detail
-
startsAs
public States startsAs(String initialState)
Description copied from interface:States
Put the state machine into state initialState.
-
become
public void become(String nextState)
Description copied from interface:States
Put the state machine into state nextState.
-
is
public State is(String state)
- Specified by:
is
in interfaceStatesClause
-
isNot
public StatePredicate isNot(String state)
- Specified by:
isNot
in interfaceStatesClause
-
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
-
-