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