Activity Forums Salesforce® Discussions What is the syntax for test mockout classes in Salesforce?

  • Marziya

    Member
    April 27, 2020 at 6:55 am

    global class YourHttpCalloutMockImpl implements HttpCalloutMock {
    global HTTPResponse respond(HTTPRequest req) {
    // Create a fake response.
    // Set response values, and
    // return response.
    }
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos