public final class ChangeName extends UpdateActionImpl<ShoppingList>
See also ShoppingListInStoreUpdateCommand.
withUpdateableShoppingList(client(), shoppingList -> { final String newName = randomString(); final ShoppingList updatedShoppingList = client().executeBlocking( ShoppingListUpdateCommand.of(shoppingList, ChangeName.of(en(newName)))); assertThat(updatedShoppingList.getName().get(Locale.ENGLISH)).isEqualTo(newName); return updatedShoppingList; });See the test code.
ShoppingList.getName()| Modifier and Type | Method and Description |
|---|---|
LocalizedString |
getName() |
static ChangeName |
of(LocalizedString name) |
getActionpublic static ChangeName of(LocalizedString name)
public LocalizedString getName()