You need to sign in to do that
Don't have an account?
Ravi kumar 292
How to cover the Json Parsing in Test Class
Hi,
I want to cover the json parsing in test class. how to do this.. based on the json response i am calling another method. So problem here is, am unable to cover the json parsing.
below is my screen shot.
I want to cover the json parsing in test class. how to do this.. based on the json response i am calling another method. So problem here is, am unable to cover the json parsing.
below is my screen shot.
Hi Ravi,
To get this covered you can use Mock Responses in test class. For more ref : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_testing_httpcalloutmock.htm