Test Class for Standard Controller in Salesforce

Sample Code:


Account a = new Account(Name = 'Test');
Class_Name obj = new Class_Name(new ApexPages.StandardController(a));

here the controller is referred to a page where the standard controller is Account.

0 comments:

Post a Comment