+ Start a Discussion

Test method for code within Catch Block

Anyone please give me some idea about how to execute code present within Catch block as part of test method.

Thanks a lot !!!




In the test method you simply need to force the exception.  Since you are catching it, you can simple assert the behavior.