public final class ChangeInitial extends UpdateActionImpl<State>
See also StateUpdateCommand.
withUpdateableState(client(), state -> { final boolean oldIsInitial = state.isInitial(); final boolean newIsInitial = !oldIsInitial; final StateUpdateCommand command = StateUpdateCommand.of(state, ChangeInitial.of(newIsInitial)); final State updatedState = client().executeBlocking(command); assertThat(updatedState.isInitial()).isEqualTo(newIsInitial); return updatedState; });
See the test code.
Modifier and Type | Method and Description |
---|---|
boolean |
isInitial() |
static ChangeInitial |
of(boolean initial) |
getAction
public static ChangeInitial of(boolean initial)
public boolean isInitial()