
1 answer
Hi Abhilash,to cover the mentioned method you need to invoke thisupdateContactList(Set<ID> setAccountID, Map<ID,Contact> mapContact,List<Contact> listNewContacts,List<Contact> listExistingContacts)from the test class, by passing the valid values, setAccountID - insert the Account and pass the IDmapContact - insert the contacts and assign to the Account created in the previous step, add them to Map and while inserting the Contact do thisfor egContact newCon = new Contact(LastName ='test', Required__c =true);insert newCon;