Use assertThrows instead of ExpectedException This change is based on one generated by an automated refactoring tool. See [1] for context. [1] https://gerrit-review.googlesource.com/c/gerrit/+/223155 Change-Id: I74b54af0d3d21fb0ea9bc679ba0bf3a5efa50aad
Gerrit plugin to provide simple submit rules and a rest API to configure them.
By simple, we mean any rule that can be described in one sentence. Or fits in a tweet.
Having a set of simple rules makes composition easier, thus allowing harder rules to be defined ... in a simple way :)
Of course, this plugin can't contain all the simple rules one can think of, and will only contain rules that seem popular or interesting to have.