public final class SetDescription extends UpdateActionImpl<ShoppingList>
See also ShoppingListInStoreUpdateCommand.
withUpdateableShoppingList(client(), shoppingList -> { final LocalizedString newDescription = en(randomString()); final ShoppingList updatedShoppingList = client().executeBlocking( ShoppingListUpdateCommand.of(shoppingList, SetDescription.of(newDescription))); assertThat(updatedShoppingList.getDescription()).isEqualTo(newDescription); return updatedShoppingList; });See the test code.
ShoppingList.getDescription()| Modifier and Type | Method and Description |
|---|---|
LocalizedString |
getDescription() |
static SetDescription |
of(LocalizedString description) |
getActionpublic static SetDescription of(@Nullable LocalizedString description)
@Nullable public LocalizedString getDescription()