public final class SetSlug extends UpdateActionImpl<ShoppingList>
See also ShoppingListInStoreUpdateCommand.
withUpdateableShoppingList(client(), shoppingList -> { final LocalizedString newSlug = randomSlug(); final ShoppingList updatedShoppingList = client().executeBlocking( ShoppingListUpdateCommand.of(shoppingList, SetSlug.of(newSlug))); assertThat(updatedShoppingList.getSlug()).isEqualTo(newSlug); return updatedShoppingList; });
See the test code.
ShoppingList.getSlug()
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getSlug() |
static SetSlug |
of(LocalizedString slug) |
static SetSlug |
ofUnset() |
getAction
public static SetSlug of(@Nullable LocalizedString slug)
public static SetSlug ofUnset()
@Nullable public LocalizedString getSlug()