mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 20:58:35 +00:00
4cd8149502
https://sonarcloud.io/organizations/iluwatar/rules?open=java%3AS5786&rule_key=java%3AS5786
title, category, language, tags
| title | category | language | tags | |
|---|---|---|---|---|
| Object Mother | Creational | en |
|
Object Mother
Define a factory of immutable content with separated builder and factory interfaces.
Class diagram
Applicability
Use the Object Mother pattern when
- You want consistent objects over several tests
- You want to reduce code for creation of objects in tests
- Every test should run with fresh data
