You need to sign in to do that
Don't have an account?
Alex Yhap
How to iterate over custom class objects from Apex Cntrl in Apex Test?
Object class in Custom Controller
Apex Test
How do I reference PaymentWrapper from CustomController in my Apex Test class?
Does PaymentWrapperList being a transient variable hinder me for iterating over it?
public transient List< PaymentList > PaymentWrapperList; public class PaymentWrapper { public Payment__c payment { get; set; } public isSelected { get; set; } public PaymentWrapper ( payment p ){ payment = p; isSelected = false; } }
Apex Test
CustomController cc = new CustomController(); //for question for(PaymentWrapper payWrap: PaymentWrapperList) { // error occurs: Save error: Invalid type: PaymentWrapper // How do I reference PaymentWrapper in CustomController? }
How do I reference PaymentWrapper from CustomController in my Apex Test class?
Does PaymentWrapperList being a transient variable hinder me for iterating over it?
Can you try like this
All Answers
Can you try like this