nilvon9wo / FakeForce

A library of utility classes for creating Apex unit and integration tests
MIT License
25 stars 1 forks source link

apex Mocks #3

Open cropredyHelix opened 6 years ago

cropredyHelix commented 6 years ago

Not really an issue but I read your comment on ApexMocks and after dismissing it myself for some time due to complex syntax; I bit the bullet and took the time to learn it. For unit testing it is great. You can see some of my examples (from a practitioner's POV) rather than an ApexMocks designer POV. Coupled with sfab_SObjectFabricator, some useful stuff.

nilvon9wo commented 6 years ago

Cheers for the link.

Someday I should dig deeper into ApexMocks, but some of the limitations are deal breaks for me, especially that iterators can't be used as return types of parameters.... being as I bulky my code, I'm constantly working with collections.

This means I'll need to build my own mocks anyway.