12
04/18
salesforce rest api test class
上一篇文章(salesforce rest api demo)我们写到salesforce如何写rest api,这篇我们将写如何写test class @isTest(SeeAllData=true) public class Api_user_profileTest { static testMethod void Api_user_profileTest() { system.debug('start...'); Test.startTest(); String ReturnCode = ''; RestContext.request = new RestRequest(); RestContext.response = new RestResponse(); RestContext.request.requestURI = '/services/apexrest/user/p...