You need to sign in to do that
Don't have an account?
forcedev99
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 !!!
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
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.