public final class SetLocale extends UpdateActionImpl<Customer>
See also CustomerInStoreUpdateCommand.
withCustomer(client(), customer -> { assertThat(customer.getLocale()).isNull(); final Customer updatedCustomer = client().executeBlocking(CustomerUpdateCommand.of(customer, SetLocale.of(Locale.GERMAN))); assertThat(updatedCustomer.getLocale()).isEqualTo(GERMAN); });
See the test code.
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
static SetLocale |
of(Locale locale) |
getAction