+ Start a Discussion
Shashank SomwanshiShashank Somwanshi 

we made handler class for trigger then what we test trigger or handler class before deploy ?

Best Answer chosen by Shashank Somwanshi
Martha VMartha V
You test the insert, update, or delete the record that the trigger deals with. For example if your trigger is for an insert (either before or after) of an Account then you write your test class to insert Account records. Both the Handler and the Trigger will be tested by the same code.

All Answers

Martha VMartha V
You test the insert, update, or delete the record that the trigger deals with. For example if your trigger is for an insert (either before or after) of an Account then you write your test class to insert Account records. Both the Handler and the Trigger will be tested by the same code.
This was selected as the best answer
Shashank SomwanshiShashank Somwanshi
Thats cool... thanks @martha V