public final class ChangeKey extends UpdateActionImpl<Channel>
See also ChannelUpdateCommand.
withUpdatableChannelOfRole(client(), INVENTORY_SUPPLY, channel -> { final String newKey = randomKey(); final Channel updatedChannel = client().executeBlocking(ChannelUpdateCommand.of(channel, ChangeKey.of(newKey))); assertThat(updatedChannel.getKey()).isEqualTo(newKey).isNotEqualTo(channel.getKey()); return updatedChannel; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static ChangeKey |
of(String key) |
getAction