public final class SetKey extends UpdateActionImpl<Category>
Category
.
See also CategoryUpdateCommand.
final String key = randomKey();
withProduct(client(), (Product product) -> {
final Product updatedProduct = client().executeBlocking(ProductUpdateCommand.of(product, SetKey.of(key)));
assertThat(updatedProduct.getKey()).isEqualTo(key);
});
See the test code.
Category.getKey()
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static SetKey |
of(String key) |
static SetKey |
ofUnset() |
getAction