Apex provides a testing framework that allows you to write unit tests, run your tests, check test results, and have code coverage results.
Apex supports the creation and execution of unit tests. Unit tests are class methods that verify whether a particular piece of code is working properly.