Blog Archives

Wrapping Custom Settings to Provide Defaults and Ease Unit Testing

I have a little pattern I use for wrapping custom settings. It has two uses, first to provide sensible defaults if the settings have not been configured and secondly to make writing unit tests easier with predictable values. If you’ve

Tagged with: , , ,
Posted in apex, code, force.com, salesforce
About Me
Product Services Developer at:
FinancialForce.com
All views expressed here are my own. More about me and contact details here.

Enter your email address to follow this blog and receive notifications of new posts by email.

Copyright (there isn’t any, feel free to reuse!)

CC0
To the extent possible under law, Tony Scott has waived all copyright and related or neighboring rights to MeltedWires.com Examples and Code Samples. This work is published from: United Kingdom.