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