docs: object mother diagrams

This commit is contained in:
Ilkka Seppälä
2025-04-09 21:31:04 +03:00
parent 7ed9e393f0
commit 6bae409380
3 changed files with 8 additions and 0 deletions
+8
View File
@@ -37,6 +37,14 @@ wiki.c2.com says
> 2. providing methods to update the objects during the tests, and
> 3. if necessary, deleting the object from the database at the completion of the test.
Mind map
![Object Mother mind map](./etc/object-mother-mind-map.png)
Flowchart
![Object Mother flowchart](./etc/object-mother-flowchart.png)
## Programmatic Example of Object Mother Pattern in Java
The Object Mother is a design pattern that aims to provide an easy way to create objects for testing purposes. It encapsulates the logic for building instances of complex objects in one place, making it easier to maintain and reuse across multiple tests.
Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB