How do you assert that a certain exception is thrown in JUnit 4 tests?

How do you assert that a certain exception is thrown in JUnit 4 tests?

Leave a Comment