Activity Forums Salesforce® Discussions What is the difference between Mock and Stub in testing in Salesforce?

  • Anjali

    Member
    May 13, 2020 at 11:26 am

    Stub: a dummy piece of code that lets the test run, but you don't care what happens to it. Mock: a dummy piece of code, that you VERIFY is called correctly as part of the test.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos