SoC and the Apex Common Library Tutorial Series Part 17: Implementing Unit Tests with the Apex Mocks Library
| |

SoC and the Apex Common Library Tutorial Series Part 17: Implementing Unit Tests with the Apex Mocks Library

What is Apex Mocks? Apex Mocks is unit test mocking framework for Apex that was inspired by the very popular Java Mockito framework. The Apex Mocks framework is also built using Salesforce’s Stub API which is a good thing, there are mocking frameworks in existence that do not leverage the Stub API… you shouldn’t use…

SoC and the Apex Common Library Tutorial Series Part 15: The Difference Between Unit Tests and Integration Tests
| |

SoC and the Apex Common Library Tutorial Series Part 15: The Difference Between Unit Tests and Integration Tests

What is Unit Testing? Unit Testing, is a way to test the logic in one class and ONLY one class at a time. Most classes in your system at some point do one of the following: 1) Call to another class to get some work done. 2) Query the database directly in the class. 3)…