I need to test a method in Developer console .
- Method is public . So I can test from Dev Console , right?
- Since it's a static method , I need to call
ClassName.Methodname(Parameters)
- This class should be the outermost class or the inner one? - Method signature is
public static List<InnerClassName> methodname(List<String> RecorIds)
- Can you please give an example of parameter?
I was calling like:
OuterClassName.methodname(id1,id2);
Can anyone please correct me?
List<String> RecordIds =new List<String>(); recordIds.add(id1); recordIds.add(id2); OuterClassName.methodname(recordIds);