Collecting parameter design pattern
Open
core
enhancement
major
- Dominant language
- HTML
- Stars
- 832
- Forks
- 303
- Avg merge
- 5h 25m
- Merged PRs (30d)
- 9
Description
_Migrated from:_ CodeHaus issue EASYMOCK-75
_Original reporter:_ Henri Tremblay
---
Scenario:
Your System Under Test (SUT) calls a method on a collaborator, sending in a List as a parameter.
The collaborator adds an element to the list before returning.
The SUT uses the list with the added element.
You need to mock the collaborator and test the SUT.
There is no argument matcher in EasyMock supporting a scenario like this, so I created one. Would it be interesting to include such a matcher in the list of predefined argument matchers for EasyMock?
Ragnvald
Contributor guide
Assessment
This issue has not been assessed yet.