Add Java API to exclude groups for reviewer suggestion

Use the new API to test exclusion of groups for reviewer suggestion.

Change-Id: I1b6456e09c5f1d8ae3dc7870976f8e3757088163
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2019-08-27 09:23:53 +02:00
parent b99280dc17
commit 2d660ed86d
4 changed files with 42 additions and 5 deletions

View File

@@ -448,6 +448,7 @@ class ChangeApiImpl implements ChangeApi {
try {
suggestReviewers.setQuery(r.getQuery());
suggestReviewers.setLimit(r.getLimit());
suggestReviewers.setExcludeGroups(r.getExcludeGroups());
return suggestReviewers.apply(change).value();
} catch (Exception e) {
throw asRestApiException("Cannot retrieve suggested reviewers", e);