Can any one help me on this Error as **Variable is not visible**
in a test class.Any help very much appreciated.
Code :
public with sharing class InvoiceController {
List<wrapperClass> appointmentList {get;set;}//These three lines are not
List<wrapperClass> appointmentList1 {get;set;} //covered in test class
public list<string> address{get;set;}//
}
Test Class :
InvoiceController icwc = new InvoiceController(sc);
icwc.appointmentList=icwc.getappointmentList();
icwc.appointmentList1=icwc.getappointmentList1();
The system throws an Error as :
Variable is not visible: appointmentList
icwc.appointmentList=icwc.getappointmentList();
Similarly for the other
Variable is not visible: appointmentList1
icwc.appointmentList1=icwc.getappointmentList1();
private
.private
keyword to be more explicit.