public class StateMachine extends Object implements States
| Constructor and Description |
|---|
StateMachine(String name) |
| Modifier and Type | Method and 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() |
public StateMachine(String name)
public States startsAs(String initialState)
Statespublic void become(String nextState)
Statespublic State is(String state)
is in interface StatesClausepublic StatePredicate isNot(String state)
isNot in interface StatesClausepublic void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingCopyright © 2003–2017 jMock. All rights reserved.