Rationale

The use of the testMethod keyword has been deprecated by Salesforce. Annotating test methods with @IsTest is the recommended approach.

Scope

  • Apex test classes
  • Apex test methods
Did this answer your question?