You need to sign in to do that
Don't have an account?
Madevala Jithender
How do i write a Test class
public class AccountUtility {
public static void ViewAnnualRevenue(){
list<account> accountlist = [select id,name,annualrevenue from account];
for(account acc : accountlist){
string acctrev = acc.name + ':' + acc.annualrevenue;
system.debug('acctrev'+acctrev);
}
}
}
public static void ViewAnnualRevenue(){
list<account> accountlist = [select id,name,annualrevenue from account];
for(account acc : accountlist){
string acctrev = acc.name + ':' + acc.annualrevenue;
system.debug('acctrev'+acctrev);
}
}
}
Try the below class. It gives 100% coverage
If this information helps, please mark the answer as best. Thank you
All Answers
Try the below class. It gives 100% coverage
If this information helps, please mark the answer as best. Thank you
Please use below code that's cover all salesforce best practices for test class:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh