fun <S : Any, E : Any, O : Any> Reactor<S, E, O>.assertFinish(fromState: S, event: E, output: O): Unit
Assert that when the given Reactor is in fromState, it will finish with output when it receives event. |
|
fun <S : Any, E : Any, O : Any> Reactor<S, E, O>.assertTransition(fromState: S, event: E, toState: S): Unit
Assert that when the given Reactor is in fromState, it will enter toState when it receives event. |