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.
Testing Custom Exceptions With JUnit’s ExpectedException
1 Article
1
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.