You need to sign in to do that
Don't have an account?
Amith Rao
But how can i do 1% code coverage for the Trigger which does not have a helper class or method?
trigger checkboxupdate on Opportunity (Before insert)
{ if(trigger.isInsert) // While entering a new record in Opp
{ for(Opportunity acc:trigger.new)
{ acc.IsPrivate=True;}
}
If above is my code. How will be 1% code coverage for the Trigger which does not have a helper class or method ? Please suggest for my question.
{ if(trigger.isInsert) // While entering a new record in Opp
{ for(Opportunity acc:trigger.new)
{ acc.IsPrivate=True;}
}
If above is my code. How will be 1% code coverage for the Trigger which does not have a helper class or method ? Please suggest for my question.
Thankyou soo much for your reply. Great .
Please be in touch if you can share your mail Id or watsapp number for further help if i need.
Regards
Amith S Rao
9620588065-watsapp
All Answers
You have to just insert the opportunity into the test class then it will increase the code coverage.
Try this code,
Thanks
Mukesh Kumar
Thankyou soo much for your reply. Great .
Please be in touch if you can share your mail Id or watsapp number for further help if i need.
Regards
Amith S Rao
9620588065-watsapp