liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@isTest
public class RetrieveApprovalRecordsControllerTest {
    public static testMethod void method1(){
        Integer intvar = RetrieveApprovalRecordsController.gettotalcount();
        List<RetrieveApprovalRecordsController.SubmittedRecordsWrapper> prorec = new List<RetrieveApprovalRecordsController.SubmittedRecordsWrapper>();
        prorec = RetrieveApprovalRecordsController.getSubmittedRecords(5,0);
        try{
            string resultrec = RetrieveApprovalRecordsController.processRecords('Approve',Json.serialize(prorec));
        }catch(Exception e){
            system.debug('Exception from process:'+e.getMessage());
        }
        RetrieveApprovalRecordsController.getObjectName(UserInfo.getUserId());
        ProcessInstance ps = new ProcessInstance();
        ps.TargetObjectId = UserInfo.getUserId();
        RetrieveApprovalRecordsController.getSubmitRecord(ps);
    }
}