public final class SetKey extends UpdateActionImpl<ShoppingList>
See also ShoppingListInStoreUpdateCommand.
withUpdateableShoppingList(client(), shoppingList -> {
final String newKey = randomKey();
final ShoppingList updatedShoppingList = client().executeBlocking(
ShoppingListUpdateCommand.of(shoppingList, SetKey.of(newKey)));
assertThat(updatedShoppingList.getKey()).isEqualTo(newKey);
return updatedShoppingList;
});
See the test code.
ShoppingList.getKey()
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static SetKey |
of(String key) |
static SetKey |
ofUnset() |
getAction