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