You just need to create the data that is utilised in the class and your try block code will be covered. For catch you need to create that condition where your code will through exception. Paste your sample code here so that we can help.
Donot forget to select best answer to make our efforts visible in the developer forum. Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help
You just need to create the data that is utilised in the class and your try block code will be covered.
For catch you need to create that condition where your code will through exception.
Paste your sample code here so that we can help.
Donot forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help
Check below link it will help .
https://developer.salesforce.com/forums?id=906F0000000B1x5IAC
Thnaks
Manoj