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

 

Advertisement

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s