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)
States
public void become(String nextState)
States
public State is(String state)
is
in interface StatesClause
public StatePredicate isNot(String state)
isNot
in interface StatesClause
public void describeTo(org.hamcrest.Description description)
describeTo
in interface org.hamcrest.SelfDescribing
Copyright © 2003–2021 jMock. All rights reserved.