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