mock
-
Apex Tests Api 모의 응답(Mock) 생성 - implement HttpCalloutMockApex 2024. 4. 27. 21:35
1. implements HttpCalloutMock ( 모의 응답 Class 생성 )@isTestimplements HttpCalloutMockglobal HttpResponse respond(){ ... } @isTestglobal class zz_Clvs_MDE_Test_ResponseDocumentCancel implements HttpCalloutMock{ global HttpResponse respond(HttpRequest request){ System.debug('@@@@ 문서 서명요청취소 Response 생성 @@@@ ' + request); Integer resStatusCode = 201; String resBody = '{..