Introduction to Apex Code Test Methods

Unit tests are comprised of test methods and classes that verify whether a particular piece of code is working properly. This article introduces test methods in the environment. It details why test methods are a critical part of application development, test method syntax, best practices, and advanced topics such as test methods for Visualforce controllers and Apex web service callouts.