Timeline for My test classes are contributing towards uncovered code
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 20, 2014 at 1:35 | comment | added | cropredy | sometimes I use a constructor with args in my mock inner class so I don't have to write many mocks - rather, one mock adjusts its results using the 'settings' passed into the constructor. Another approach is to pass in a string of a static resource that contains the results you want from the callout so you only need one mock class and all the variability of response comes from staticresources | |
Dec 20, 2014 at 1:06 | history | answered | Matt and Neil | CC BY-SA 3.0 |