public final class ChangeName extends UpdateActionImpl<Channel>
See also ChannelUpdateCommand.
withUpdatableChannelOfRole(client(), INVENTORY_SUPPLY, channel -> { final LocalizedString newName = randomSlug(); final Channel updatedChannel = client().executeBlocking(ChannelUpdateCommand.of(channel, ChangeName.of(newName))); assertThat(updatedChannel.getName()).isEqualTo(newName); return updatedChannel; });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getName() |
static ChangeName |
of(LocalizedString name) |
getAction
public LocalizedString getName()
public static ChangeName of(LocalizedString name)