apache / accumulo-proxy

Apache Accumulo Proxy
https://accumulo.apache.org
Apache License 2.0
9 stars 19 forks source link

Convert try-catch blocks in tests to JUnit assertThrows #41

Closed DomGarguilo closed 1 year ago

DomGarguilo commented 1 year ago

Closes #36

In a lot of places in the tests, there are try-catch statements that are used to ensure that an exception is thrown. In this PR I tried to find usages of that pattern and replace them with assertThrows() statements which have a few advantages.