commit | 7cefa0808a45abfb8730a0edf035835d31dc62d7 | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Thu May 02 11:22:54 2019 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Mon May 06 10:56:22 2019 -0700 |
tree | a06763e30eb86a3d488ade3304f139b846ea93b2 | |
parent | b4e1063aa9cc99411532cd7333d560d2cf18a0a7 [diff] |
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