public final class ChangeName extends UpdateActionImpl<Category>
See also CategoryUpdateCommand.
withCategory(client(), category -> { final LocalizedString newName = LocalizedString.of(ENGLISH, "new name"); final CategoryUpdateCommand command = CategoryUpdateCommand.of(category, ChangeName.of(newName)); final Category updatedCategory = client().executeBlocking(command); assertThat(updatedCategory.getName()).isEqualTo(newName); });
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()