public final class SetAuthorName extends UpdateActionImpl<Review>
See also ReviewUpdateCommand.
withUpdateableReview(client(), (Review review) -> { final String authorName = randomKey(); final Review updatedReview = client().executeBlocking(ReviewUpdateCommand.of(review, SetAuthorName.of(authorName))); assertThat(updatedReview.getAuthorName()).isEqualTo(authorName); return updatedReview; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getAuthorName() |
static SetAuthorName |
of(String authorName) |
getAction
public static SetAuthorName of(@Nullable String authorName)