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
BALA_RAMBALA_RAM 

Can you please give me Idea about this class for Testclass.If you know please send me code

public class accountlistpage{
// ApexPages.StandardSetController must be instantiated
// for standard list controllers
public ApexPages.StandardSetController setCon {
get {
if(setCon == null) {
setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
[select name,phone from Account]));
}
return setCon;
}
set;
}
// Initialize setCon and return a list of records
public List<Account> getAccount() {
return (List<Account>) setCon.getRecords();
}
}