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