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