Last week I messed a lot trying to validate a method that received a parameter type outside my control was called. As that type didn't have equals overridden, mocktail never detected that the parameter was passed. So I had to use another strategy to check if that parameter was passed: to specify which attributes of the type to check.
I'm adding that strategy here as an example to help others. It's actually not mocktail documentation, but mocktail can also use that strategy, so it will save lives.
Type of Change
[ ] โจ New feature (non-breaking change which adds functionality)
[ ] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[ ] โ Breaking change (fix or feature that would cause existing functionality to change)
Status
READY
Breaking Changes
NO
Description
Last week I messed a lot trying to validate a method that received a parameter type outside my control was called. As that type didn't have equals overridden, mocktail never detected that the parameter was passed. So I had to use another strategy to check if that parameter was passed: to specify which attributes of the type to check.
I'm adding that strategy here as an example to help others. It's actually not mocktail documentation, but mocktail can also use that strategy, so it will save lives.
Type of Change