public final class SetKey extends UpdateActionImpl<ProductSelection>
See also ProductSelectionUpdateCommand.
withUpdateableProductSelection(client(), productSelection -> { final String newKey = randomKey(); final ProductSelection updatedProductSelection = client().executeBlocking(ProductSelectionUpdateCommand.of(productSelection, SetKey.of(newKey))); assertThat(updatedProductSelection.getKey()).isEqualTo(newKey); return updatedProductSelection; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static SetKey |
of(String key) |
getAction