+ Start a Discussion
udayarangareddy mekalaudayarangareddy mekala 

Trigger Test Class111

 

Hi
 if(newvals.severity != oldvals.Serverity){
                    Account acc = new Account();
                         acc.Field__c = 'Severity';
                         acc.New_Value__c= newvals.Severity;
                         acc.Old_Value__c= oldvals.Severity;
                         acc.Id__c = newvals.id;
                         ac.add(acc);

For above code how to write the test class.
Thnks&Regards
rangareddy
 
Best Answer chosen by thisisnotapril
Andy BoettcherAndy Boettcher
rangareddy,

Please read through the help documentation for writing Unit Tests - this will help you out.

https://developer.salesforce.com/page/An_Introduction_to_Apex_Code_Test_Methods