Activity Forums Salesforce® Discussions Why we need to create mock class in Salesforce?

  • Anuj

    Member
    May 13, 2020 at 2:01 PM

    Mocking a class means that you programmatically establish how is going to react, what is going to do and return. As an example, think on a Case record that needs an Account because the code that we want to test does validate against the related Account record

Log In to reply.