You need to sign in to do that
Don't have an account?
Test method for controller extension
Hey all. Trying to write a test method that extends a zuora class. Basically trying to put default values into a VF page when it renders. I am at a loss on how to test for this. I am sure it's simple but so far it has eluded me. Here is the extension code:
Any help and guidance would be appreciated.
global class DefaultValues extends zqu.CreateQuoteController.PopulateDefaultFieldValuePlugin{ global override void populateDefaultFieldValue (SObject record, zqu.PropertyComponentController.ParentController pcc) { super.populateDefaultFieldValue(record, pcc); record.put('zqu__InitialTerm__c', 12); record.put('zqu__RenewalTerm__c', 12); /* String lPCP = (String)record.get('Acct_PCP__c'); if (lPCP=='Shah'){ record.put('Physician__c','Is'); } else { record.put('Physician__c','Not'); }*/ } }
Any help and guidance would be appreciated.
Can you go through bellow site helpful
https://developer.salesforce.com/forums/?id=906F000000093YaIAI