You need to sign in to do that
Don't have an account?
pooja kasliwal
getting an error while writing a test class for these class.
public class AddmultipleAccountsController { public String rowNumber { get; set; } public String cnt { get; set; } public String listAccount { get; set; } Offer__c account = new Offer__c(); public list<Offer__c> listOffer{ get; set; } public Offer__c del; public Integer rowIndex {get;set;} public List<Offer__c> dellistOffer {get;set;} public AddmultipleAccountsController() { listOffer=new list<Offer__c>(); listOffer.add(account); } public PageReference deleteRow(){ rowIndex = Integer.valueOf(ApexPages.currentPage().getParameters().get('rowIndex')); // System.debug('rowbe deleted ' + rowIndex ); //System.debug('rowm to be deleted '+listOffer[rowIndex]); del = listOffer.remove(rowIndex); //dellistOffer.add(del); return Page.dy; } Public void addAccount() { Offer__c acc = new Offer__c(); listOffer.add(acc); } public PageReference saveAccount() { for(Integer i=0; i<listOffer.size(); i++) { insert listOffer; } return Page.dy; } }
What exactly the error you are getting ,Is it possible to post your test class code so that we can help you out .
Thanks
Manoj
Can you share the test code which you ahev written and error which you are getting ?
Thanks
Please share the error message.
-Thanks
Ashlekh Gera