public final class SetName extends UpdateActionImpl<State>
See also StateUpdateCommand.
withUpdateableState(client(), state -> { final LocalizedString newName = randomSlug(); final StateUpdateCommand command = StateUpdateCommand.of(state, SetName.of(newName)); final State updatedState = client().executeBlocking(command); assertThat(updatedState.getName()).isEqualTo(newName); return updatedState; });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getName() |
static SetName |
of(LocalizedString name) |
getAction
public static SetName of(@Nullable LocalizedString name)
@Nullable public LocalizedString getName()