function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
_sfdc_sfdc 

test class for future methods

Hi all,
Apex class XYZ that contains the only one future method, future method will call soap webservice callout. For this sittuation how to improve my testcoverage to XYZ   Class. can anyone help me to guide.
Ankit AroraAnkit Arora
A lot of help provided in below links, please let me know if it still not resolves your problem.

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_invoking_future_methods.htm

http://salesforce.stackexchange.com/questions/25408/how-to-get-test-coverage-for-future-and-http-response-method-in-class

http://carvingintheclouds.blogspot.in/2013/12/testing-apex-future-methods-in.html

http://stackoverflow.com/questions/11310177/test-coverage-for-future-method-salesforce

https://developer.salesforce.com/forums?id=906F000000094QOIAY