function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Adam MarksAdam Marks 

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:
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'){

Any help and guidance would be appreciated.
Venkateswarlu BVenkateswarlu B
Hi Adam,
Can you go through bellow site helpful
Adam MarksAdam Marks
I already saw that and it wasn't what I needed. The extension class I am testing is simply putting default values into a VF page. That's where I am stuck.