-
Task
-
Resolution: Done
-
Major
-
None
-
None
When testing exceptions using @Test(expected=...) annotation, having additional assertions inside that test method can be problematic because any code after the raised exception will not be executed.
Move the exception checking from the @Test annotation to the test body in DefaultSSLContextEmptyPathTest, i.e., check that the exception thrown by SSLContext.getDefault is an IllegalArgumentException.
One way to do this by using Assert#assertThrows.