NooBxGockeL c2a7b902a9 Work on #190: urm/puml updates
* added pumlid where it was missing and possible
* removed pumlid where it generated a bad image
* regenerated some incorrect puml's
* added 'left to right direction' puml prefix to some diagrams to improve the automatic layouting
2017-03-25 22:07:10 +01:00
..
2017-02-11 21:46:56 +02:00
2016-10-24 15:28:27 +02:00
2017-03-25 22:07:10 +01:00

layout, title, folder, permalink, pumlid, categories, tags
layout title folder permalink pumlid categories tags
pattern Object Mother object-mother /patterns/object-mother/ LOr13iCW30JlVKNx0E3UKxxYW9KGWK7sklb-wR6dtLbfj9k15DxRurKbDo_isfudCEsTaj8TZuhJTpVMF0GiY7dqL9lVjDHqqOT2OQk7X4a0grZgPAkaiL-S4Vh0kOYH_vVeskFyVMyiPUKN Creational
Java
Difficulty-Beginner

Object Mother

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

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