You need to sign in to do that
Don't have an account?
Maria Joseph
What is apex mock? is there any sample code for apex mock test?
Hi,
I am new to write apex mock test so pls guide me how to write apex mock test. if it's there any sample code pls post here.
advance thanks.
Joseph.
I am new to write apex mock test so pls guide me how to write apex mock test. if it's there any sample code pls post here.
advance thanks.
Joseph.
Please check below link .https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_testing_httpcalloutmock.htm
For general mocking in Apex code, you may find this ApexMocks framework useful:
https://github.com/financialforcedev/fflib-apex-mocks/blob/master/README.md
This blog explains in some detail on how to use it:
http://andyinthecloud.com/2015/03/22/unit-testing-with-apex-enterprise-patterns-and-apexmocks-part-1/