You need to sign in to do that
Don't have an account?
Kris Hankins
Testing customController for junction objects
I have some external objects in our org that I need to create a custom controller for. We have the Controller written, at least I believe it will work for what we need. My problem now is how do I test this controller in the sandbox since Lightning Connect is not enabled in our sandbox, only in production??
the controller code is below
the controller code is below
public class NDSRentalContractController { Private final Account acct; public list<ER_HEADER__x> listContract {get; set;} public NDSRentalContractController(ApexPages.StandardController stdController){ this.acct = (Account) stdController.getRecord(); listContract = [SELECT ExternalID, RH_OPEN_DATE__c from ER_HEADER__x WHERE RH1_CUSTOMER__c=:acct.NDS_Customer_Number__c]; } }
So you need test class for this controller? If yes, use the below code: Let me know if you need any other help.
Thanks,
Neetu