Add unit tests to cover error conditions in ChecksSubmitRule

It's difficult to trigger the error conditions from an integration test,
but doing it with mocks is quite straight-forward.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I9aae3def5e31de1da80144da357b88498f15bcae
2 files changed
tree: 96828ad232fa817a93297c874a5329f6bbb9a9bb
  1. gr-checks/
  2. java/
  3. javatests/
  4. src/
  5. BUILD
  6. LICENSE
  7. 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.