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