Activity Forums Salesforce® Discussions when we can use a mock and a stub in Salesforce?

  • Ratnesh

    Member
    February 26, 2020 at 2:17 pm

    You can use it to test classes in isolation, which is important for unit testing. Building your mocking framework with the stub API can also be beneficial because stub objects are generated at runtime. Because these objects are generated dynamically, you don't have to package and deploy test classes.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos