1.

How To Create A Junit To Make Sure That The Tested Method Throws An Exception ?

Answer»

USING ANNOTATION TEST with the ARGUMENT as expected exception.
@Test (expected = Exception.class)

Using annotation Test with the argument as expected exception.
@Test (expected = Exception.class)



Discussion

No Comment Found