public final class ChangeName extends UpdateActionImpl<T>
See also ProductUpdateCommand.
withUpdateableProduct(client(), product -> { final LocalizedString newName = LocalizedString.ofEnglish("newName " + RANDOM.nextInt()); final Product updatedProduct = client().executeBlocking(ProductUpdateCommand.of(product, ChangeName.of(newName))); assertThat(updatedProduct.getMasterData().getStaged().getName()).isEqualTo(newName); return updatedProduct; });
See the test code.
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getName() |
Boolean |
isStaged() |
static ChangeName |
of(LocalizedString name) |
static ChangeName |
of(LocalizedString name,
Boolean staged) |
getAction
public static ChangeName of(LocalizedString name)
public static ChangeName of(LocalizedString name, @Nullable Boolean staged)
public LocalizedString getName()