public final class SetLocale extends UpdateActionImpl<Review>
See also ReviewUpdateCommand.
withUpdateableReview(client(), builder -> builder.locale(Locale.GERMAN), (Review review) -> { final Review updatedReview = client().executeBlocking(ReviewUpdateCommand.of(review, SetLocale.of(Locale.ENGLISH))); assertThat(updatedReview.getLocale()).isEqualTo(Locale.ENGLISH); return updatedReview; });
See the test code.
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
static SetLocale |
of(Locale locale) |
getAction