...

/

@Nested Tests

@Nested Tests

Learn how to use the @Nested annotation to configure the test hierarchy.

Test methods are grouped in test classes. Test methods in a test class are typically related to the same test target. JUnit 5 supports nested tests that can easily express complicated test relationships. Nested tests are declared using the org.junit.jupiter.api.Nested ...