You need to sign in to do that
Don't have an account?
SFDC16
Test class for conditional constructor
Test class for the conditional constructor.
for example '
public class Test()
{
public List <Dashboard> fetchdashboard{get;set;}
Test()
{
List<user> s=[select id,name from user]
if(s.name='xyz')
{
fetchdashboard=[select id name from Dashboard where name like '%test12323%']
}
else if()
{
}
}
}
Test class for above code
for example '
public class Test()
{
public List <Dashboard> fetchdashboard{get;set;}
Test()
{
List<user> s=[select id,name from user]
if(s.name='xyz')
{
fetchdashboard=[select id name from Dashboard where name like '%test12323%']
}
else if()
{
}
}
}
Test class for above code
All Answers
Test Class