Salesforce.com
Its all about Salesforce
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.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment