JAVA – How do you assert that a certain exception is thrown in JUnit 4 tests? JUnit provides an option of tracing the exception handling of code.
JUnit – Expected Exceptions Test 7 ways of handling exceptions in JUnit.
1 Article
1