`TestFactory` Annotation

Learn to write dynamic tests in JUnit 5 using the @TestFactory annotation.

JUnit 5 provides the @Test annotation in the Jupiter module to write standard unit tests. These test cases assume the behavior of the test. It’s not possible to change the behavior of the tests if anything happens at runtime.

Assumptions provide a basic form of dynamic behavior but are rather limited in their expressiveness.

Jupiter introduced a new dynamic ...

Get hands-on with 1400+ tech skills courses.