public final class ChangeOrderHint extends UpdateActionImpl<Category>
withCategory(client(), category -> {
final String newOrderHint = randomSortOrder();
final CategoryUpdateCommand command = CategoryUpdateCommand.of(category, ChangeOrderHint.of(newOrderHint));
final Category updatedCategory = client().executeBlocking(command);
assertThat(updatedCategory.getOrderHint()).isEqualTo(newOrderHint);
});
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getOrderHint() |
static ChangeOrderHint |
of(String orderHint) |
getAction
public static ChangeOrderHint of(String orderHint)
public String getOrderHint()