Use assertThrows instead of ExpectedException

This change is based on one generated by an automated refactoring tool.
See [1] for context.

The refactoring tool used Hamcrest matches to assert over the cause of
an exception; replace those manually with the Truth equivalent
.hasCauseThat().

[1] https://gerrit-review.googlesource.com/c/gerrit/+/223155

Change-Id: Icfba83fb225e7f14e1daefbe82483fbf8a76dd2c
11 files changed
tree: a06763e30eb86a3d488ade3304f139b846ea93b2
  1. gr-checks/
  2. java/
  3. javatests/
  4. proto/
  5. resources/
  6. BUILD
  7. LICENSE
  8. README.md
README.md

Gerrit Code Review Checks Plugin

This plugin provides a unified experience for checkers (CI systems, static analyzers, etc.) to integrate with Gerrit Code Review.