mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 04:58:33 +00:00
docs: object mother diagrams
This commit is contained in:
@@ -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
|
||||
|
||||

|
||||
|
||||
Flowchart
|
||||
|
||||

|
||||
|
||||
## 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 |
Reference in New Issue
Block a user