0

how to cover Set of value parameter in test class. please check below my code

 public class test {

    public static Decimal testamount(set<Employee__c>Emp, string state){
     ----
     -----
    return null;
    }
2
  • 2
    For static methods, simply call ClassName.MethodName(parameters), example- test.testamount(new set<Employee__c>(), 'state');. Always refer to documentation or trailhead (module Get started with Apex unit tests)
    – Raul
    Commented Dec 27, 2018 at 13:50
  • 2
    @Goldberg Never name class as 'Test', this might lead into problems for your test classes. Commented Dec 27, 2018 at 14:23

0

You must log in to answer this question.

Browse other questions tagged .