public final class ChangeSlug extends UpdateActionImpl<Category>
See also CategoryUpdateCommand.
withCategory(client(), category -> { final LocalizedString newSug = randomSlug(); final CategoryUpdateCommand command = CategoryUpdateCommand.of(category, ChangeSlug.of(newSug)); final Category updatedCategory = client().executeBlocking(command); assertThat(updatedCategory.getSlug()).isEqualTo(newSug); });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getSlug() |
static ChangeSlug |
of(LocalizedString slug) |
getAction
public static ChangeSlug of(LocalizedString slug)
public LocalizedString getSlug()