3 ms·
You're using layout to cover up the fact that you're not testing the most important line in that function. Error handling should be the FIRST thing you test.
by NateDad 14y ago
You're using layout to cover up the fact that you're not testing the most important line in that function.
Error handling should be the FIRST thing you test.
- laceysnr 14y agoI test most, but like l said I tend to be over cautious such that some exceptions are not mine to throw, as in only major platform issues will generate them, and I refuse to add logic to the main code to facilitate tests. On some platforms I would be in complete agreement with you but Force.com has it's own specific peculiarities.