public final class SetKey extends UpdateActionImpl<Cart>
See also CartInStoreUpdateCommand.
withCart(client(), cart -> { assertThat(cart.getKey()).isNull(); final String key = randomKey(); final Cart updatedCart = client().executeBlocking(CartUpdateCommand.of(cart, SetKey.of(key))); assertThat(updatedCart.getKey()).isEqualTo(key); return updatedCart; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static SetKey |
of(String key) |
getAction