public final class SetLocale extends UpdateActionImpl<Order>
See also OrderUpdateCommand.
withOrder(client(), order -> { assertThat(order.getLocale()).isNull(); final Order updatedOrder = client().executeBlocking(OrderUpdateCommand.of(order, SetLocale.of(Locale.GERMAN))); assertThat(updatedOrder.getLocale()).isEqualTo(GERMAN); return updatedOrder; });
See the test code.
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
static SetLocale |
of(Locale locale) |
getAction