Activity › Forums › Salesforce® Discussions › Mock and Stub Objects in Salesforce? Salesforce® Discussions Mock and Stub Objects in Salesforce? Posted by Anuj on April 29, 2020 at 11:48 AM What is the difference between Mock and Stub Objects in Salesforce? Anjali replied 6 years, 1 month ago 2 Members · 1 Reply 1 Reply Anjali Member April 29, 2020 at 12:57 PM a mock and a stub object are slightly different. Mock objects work on the object level. Stubs replace individual methods. On the Lightning Platform, developers write mocks and stubs by extending platform interfaces. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me