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
Use builder pattern
http://www.natpryce.com/articles/000714.html
https://reflectoring.io/objectmother-fluent-builder/
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 1 year ago