Apex Unit Testing and Anonymous scripting – The Generic…
Been writing a cool Utility method which allows me to create my testing data in much easier manner taking under consideration Users that create independently Fields with the required checkbox on => which cause all Testing class that is trying to insert/update this sObject to fail.
I was trying to create manually few sample records and also encountered issues, as I have multiple required fields to populated that I was not aware of – so instead of start investigating and naming field by field I thought will be better to have my code do it for me.
Read more “Apex Unit Testing and Anonymous scripting – The Generic Way”