public final class ChangeOrderState extends UpdateActionImpl<Order>
See also OrderUpdateCommand.
withOrder(client(), order -> { assertThat(order.getOrderState()).isEqualTo(OrderState.OPEN); final Order updatedOrder = client().executeBlocking(OrderUpdateCommand.of(order, ChangeOrderState.of(OrderState.COMPLETE))); assertThat(updatedOrder.getOrderState()).isEqualTo(OrderState.COMPLETE); return updatedOrder; });
See the test code.
Modifier and Type | Method and Description |
---|---|
OrderState |
getOrderState() |
static ChangeOrderState |
of(OrderState orderState) |
getAction
public static ChangeOrderState of(OrderState orderState)
public OrderState getOrderState()