public final class SetExternalId extends UpdateActionImpl<Category>
withCategory(client(), category -> { final String newExternalId = randomKey(); final CategoryUpdateCommand command = CategoryUpdateCommand.of(category, SetExternalId.of(newExternalId)); final Category updatedCategory = client().executeBlocking(command); assertThat(updatedCategory.getExternalId()).isEqualTo(newExternalId); });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getExternalId() |
static SetExternalId |
of(String externalId) |
getAction
public static SetExternalId of(String externalId)