Blog Archives

Mocking Multiple HTTP Requests to the Same Endpoint

My Blog posts are like buses. You don’t see one for ages and then two come along at once. I was musing, like you do, what to do when Unit Testing a service that makes successive call-outs to the same

Tagged with: , , ,
Posted in apex, code, force.com, salesforce, Uncategorized

Wrapping Custom Metadata to Support Unit Testing

Wrapping Paper

My last post looked at using a wrapper class to make Custom Settings more convenient to access from apex code and to ease defaulting and unit testing. If, like me, you’ve taken the leap to using Custom Metadata instead of

Tagged with: , , ,
Posted in apex, code, force.com, salesforce

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.