docs: add arrange/act/assert flowchart

This commit is contained in:
Ilkka Seppälä
2025-04-05 20:55:10 +03:00
parent 35bae7e839
commit 1b17c400e3
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -38,6 +38,10 @@ WikiWikiWeb says
> Arrange/Act/Assert is a pattern for arranging and formatting code in UnitTest methods.
Flowchart
![Arrange/Act/Assert flowchart](./etc/arrange-act-assert-flowchart.png "Arrange/Act/Assert flowchart")
## Programmatic Example of Arrange/Act/Assert Pattern in Java
We need to write comprehensive and clear unit test suite for a class. Using the Arrange/Act/Assert pattern in Java testing ensures clarity.
Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB