With TestNG, while writing unit tests, there can be certain scenarios where we need to verify that an exception is being thrown by the program during execution. TestNG provides functionality to test such exception scenarios by allowing the user to specify the type of exceptions that are expected to be thrown by a test during […]
The post TestNG – Expected Exception appeared first on HowToDoInJava.