JUnit 5 Nested Tests
This article shows you how to use the JUnit 5 @Nested annotation to group tests together. P.S Tested with JUnit 5.5.2 Why nested tests? It’s optional to create nested tests. Still, it helps to create hierarchical contexts to structure the related unit tests together; in short, it helps to keep the tests clean and readable. …