Files
java-design-patterns/object-mother/README.md
T
2022-11-20 16:48:05 +02:00

882 B

title, category, language, tag
title category language tag
Object Mother Creational en
Instantiation

Object Mother

Define a factory of immutable content with separated builder and factory interfaces.

Class diagram

alt text

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

Credits