public final class ChangeSortOrder extends UpdateActionImpl<ProductDiscount>
See also ProductDiscountUpdateCommand.
withUpdateableProductDiscount(client(), discount -> { final String newSortOrder = randomSortOrder(); final ProductDiscount updatedDiscount = client().executeBlocking(ProductDiscountUpdateCommand.of(discount, ChangeSortOrder.of(newSortOrder))); assertThat(updatedDiscount.getSortOrder()).isEqualTo(newSortOrder); return updatedDiscount; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getSortOrder() |
static ChangeSortOrder |
of(String sortOrder) |
getAction
public static ChangeSortOrder of(String sortOrder)
public String getSortOrder()