Attribute which specifies the exception type:-

Answer: b
Explanation: JUnit 4 offers a powerful feature that allows you to expect an exception to be thrown in a test case. You can simply specify the exception type in the expected attribute of the @Test annotation.
 

Tìm kiếm

Back
Top