Activity Forums Salesforce® Discussions What are mocks and stubs in Salesforce?

  • Manish

    Member
    February 26, 2020 at 2:26 pm

    Apex provides a stub API for implementing a mocking framework. A mocking framework has many benefits. It can streamline and improve testing and help you create faster, more reliable tests. 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.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos