2021-09-12 13:27:23 +03:00
..
2019-12-07 18:03:49 +02:00
2021-09-12 13:27:23 +03:00

title, category, language, tags
title category language tags
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