The specification class defines acceptance criteria and replaces the manual this.Assert...() methods. This means we can write our acceptance criteria before the tests are actually written. These are usually written in conjunction with a query class, so in this recipe, we will create both and update the test to use this new pattern.
Creating an Acceptance test library specification class
Getting ready
This recipe follows the previous recipe. As a minimum, we need a package that references the following packages:
- Testing essentials
- Acceptance test library – Foundation
- Acceptance test library – Application suite (if using standard entities in your tests)
- An entity class for the table we are going to test, such...