Syntax for test class in Salesforce

Syntax for test class in Salesforce

Syntax:

@isTest 
private class class_Name{
static testMethod void method_Name(){
}
}

Classes defined with the isTest annotation don’t count against your organization limit of 3,000,000 characters for all Apex codes. Individual methods defined with the isTest annotation do count against your organization limits.

Cheers!!!

Leave a Reply