public final class SetAddress extends UpdateActionImpl<Channel>
See also ChannelUpdateCommand.
withUpdatableChannelOfRole(client(), asSet(PRIMARY), channel -> {
final Address address = Address.of(DE).withCity("Berlin");
final Channel updatedChannel = client().executeBlocking(ChannelUpdateCommand.of(channel, SetAddress.of(address)));
assertThat(updatedChannel.getAddress()).isEqualTo(address);
return updatedChannel;
});
See the test code.
Channel.getAddress()
Modifier and Type | Method and Description |
---|---|
Address |
getAddress() |
static SetAddress |
of(Address address) |
getAction
public static SetAddress of(@Nullable Address address)