The method annotated with @TestFactory is not a test itself but creates a stream of dynamic tests—in this usage, similar to the idea of Parameterized tests of JUnit 4.

The following example shows how more sophisticated test scenarios could be realized. Imagine a system test scenario testing a resource which is available only after some startup time. The test should wait within a timeout for the resource being available.