+ Start a Discussion
iyappan kandasamy 4iyappan kandasamy 4 

Need trigger test class

This is original trigger code
------------------------------------
updateQuoteLineItem = new List<QuoteLineItem>();
        for (QuoteLineItem qli : MapQLI.values()) {
            if(mapQuoteOppty.get(qli.Id) != null) {
                String OppID = mapQuoteOppty.get(qli.Id);
                OpportunityLineItem OLI = MapOLI.get(OppID);

                qli.Event__c = OLI.Event__c;
                qli.Opp_Line_Item_Id__c = OLI.Id;
                qli.Opportunity_Line_Item_Name__c = OLI.Name;
                qli.ServiceDate = OLI.ServiceDate;
                qli.Onsite_Additional_Price__c = OLI.Onsite_Additional_Price__c;
                qli.Tax__c = OLI.Tax__c;
                qli.Tax_Rate__c = OLI.Tax_Rate__c;
                qli.Promo_Code__c = OLI.Promo_Code__c;
                updateQuoteLineItem.add(qli);
            }

need test class for the above code.
Kindly do the needful
Thanks in advance