Object Mother
What
Issues
becomes bloated, messy and hard to maintain.
can lead to duplicated code
can lead to lots of methods, with single lines especially with lots of refactoring
Alternatives
Use builder pattern
links
http://www.natpryce.com/articles/000714.html
Combination
https://reflectoring.io/objectmother-fluent-builder/
Links
https://martinfowler.com/bliki/ObjectMother.html
https://java-design-patterns.com/patterns/object-mother/
https://stackoverflow.com/questions/923319/what-is-an-objectmother
Last updated