public final class SetMetaTitle extends UpdateActionImpl<Category>
See also CategoryUpdateCommand.
withPersistentCategory(client(), category -> {
final LocalizedString newValue = randomSlug();
final Category updatedCategory = client().executeBlocking(CategoryUpdateCommand.of(category, SetMetaTitle.of(newValue)));
assertThat(updatedCategory.getMetaTitle()).isEqualTo(newValue);
});
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getMetaTitle() |
static SetMetaTitle |
of(LocalizedString metaTitle) |
getAction
public static SetMetaTitle of(@Nullable LocalizedString metaTitle)
@Nullable public LocalizedString getMetaTitle()