SoC and the Apex Common Library Tutorial Series Part 16: Unit Test Mocks with Separation of Concerns
| |

SoC and the Apex Common Library Tutorial Series Part 16: Unit Test Mocks with Separation of Concerns

How does Unit Testing fit into Separation of Concerns? The answer to this is simple, without Separation of Concerns, there is no unit testing, it just simply isn’t possible. To unit test you need to be able to create stub (mock) classes to send into your class you are testing via dependency injection (or through…

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)…