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: Ia6cc3a263355c985557e5d876e7d8dd2b77a39fa
4 files changed
tree: 768c296809e71de380c551cc1ffb7b4654fb5a9b
  1. .gitignore
  2. BUILD
  3. LICENSE
  4. LICENSE-re2j
  5. external_plugin_deps.bzl
  6. src/