Junit–How to write negative test case

It is important to test a happy path, but it is also very important to test and analyze the negative impact by writing the negative test cases. Refer the screen shot :

image

Advertisements