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