+ Start a Discussion
Soundar Raj PonpandiSoundar Raj Ponpandi 

How to cover a test class for this class ?


Can anyone please cover a test class for following code ?
public without sharing class GD_RemoveProcessRecords {

    public static void removeProcess(List<Approval.ProcessWorkitemRequest> requests){
         Approval.process(requests, true);

ANUTEJANUTEJ (Salesforce Developers) 
Hi Soundar,

I found the developer documentation can you please have a look at it:


I believe you need to have a simple test class with a method in which you would be calling the method you would like to test.

If this helps can you please choose this as the best answer so that it can be used by others in the future.