You need to sign in to do that
Don't have an account?
bharath kumar 52
Test class for a trigger with "callouts"?
Hi All,
I have written a trigger which will supply the location details to a vf page. How can i create a test class for such a trigger?
trigger SetAssetLocation on Asset (after insert, after update) { for (Asset a : trigger.new) if (a.Location__Latitude__s == null) AssetLocation.getLocations(a.id); }
If you just insert an Asset in the Test Class, the Trigger will fire for Code coverage.
Please find below Test Class.
Let us know if that helps you.
Best regards,
BALAJI
All Answers
If you just insert an Asset in the Test Class, the Trigger will fire for Code coverage.
Please find below Test Class.
Let us know if that helps you.
Best regards,
BALAJI
Thank you Balaji.
That helps :)