ApexMocks Framework Tutorial

The next series of posts will form a basic tutorial series explaining how to use the ApexMocks framework in detail. The things we will cover are:

  • Simple dependency injection
    • Defining your component interface
    • Defining your implementation class
  • Using apex-mocks-generator to inject mock dependency classes into your unit test class
  • Writing behaviour verification tests
  • Writing tests which stub dependencies

 

2 thoughts on “ApexMocks Framework Tutorial

  1. Pingback: Verify call’s order in Apex unit tests – XoNoX Force

  2. Pingback: Answering with Apex Mocks – XoNoX Force

Leave a comment