Fix ambiguous assertThat calls for override approvals

CodeOwnersPluginConfigSnapshot#getOverrideApprovals() returns an
ImmutableSortedSet now (see change I38415ec45). This makes assetThat
calls for override approvals ambiguous:

  both method assertThat(ImmutableSet<RequiredApproval>) in
  RequiredApprovalSubject and method assertThat(SortedSet<?>) in Truth
  match

Change the signature of assertThat(ImmutableSet<RequiredApproval>) to
assertThat(ImmutableSortedSet<RequiredApproval>) so that it takes
precedence.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Id80ab0f2e92af66b9ed8075b6fdf9890bab207e0
3 files changed
tree: a819a4fabc22f4976a7ac777b6b0a630c05c50f5
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/about.md.

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md.