function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SakshiSakshi 

Help needed to write Test Method

Hi,

 

Can anybody provide a sample class (controller/extension) and its test method to me?

 

Thank you!

Sakshi

hisrinuhisrinu

Account acc = new Account(Name = 'TEST ACC') ;
insert acc;
ApexPages.StandardController c = new ApexPages.StandardController(acc);
classname inst = new classname(c);
inst.methodname();