You need to sign in to do that
Don't have an account?

Unit test for external objects SOQL in Apex class
I have the apex controller for vf page and external objects Queries in the controller are not coevring the code coverage.
Please suggest me how to increase the code coverage for external objects SOQL in apex class.
It really needful if anybody can help me on this as i need to deploy the code into PROD by EOD.
Please suggest me how to increase the code coverage for external objects SOQL in apex class.
It really needful if anybody can help me on this as i need to deploy the code into PROD by EOD.
You need to cover External Objects unit test like the Webservice callout test using mocking.
Write the code for MockHttpResponseGenerator for fulfilling your needs.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_testing_httpcalloutmock.htm