You need to sign in to do that
Don't have an account?
bujji
Test Class for ApexPages.StandardSetController
Hi Guys,
I have a class in which i am using StandaraSetController to display the data with paginations. How to write the test class for the below method.
ApexPages.StandardSetController con = new ApexPages.StandardSetController(Database.getQueryLocator([select Id,Name From Account limit 1000]));
public List<Account> displayAccts
{
get
{
if(con != null)
return (List<Account>)con.getRecords();
else
return null ;
}
set;
}
Thanks,
Bujji
I have a class in which i am using StandaraSetController to display the data with paginations. How to write the test class for the below method.
ApexPages.StandardSetController con = new ApexPages.StandardSetController(Database.getQueryLocator([select Id,Name From Account limit 1000]));
public List<Account> displayAccts
{
get
{
if(con != null)
return (List<Account>)con.getRecords();
else
return null ;
}
set;
}
Thanks,
Bujji
Sample: