DynamicContainer is a container generated at runtime.
It is composed of a display name
and an Iterable or Stream of DynamicNodes.
Instances of DynamicContainer must be generated by factory methods
annotated with @TestFactory.
dynamicContainer(String, Iterable), dynamicContainer(String, Stream), TestFactory, DynamicTest
| Modifier and Type | Field and Description |
|---|---|
| private final Stream |
| Access | Constructor and Description |
|---|---|
| private | DynamicContainer(String displayName, @Nullable URI testSourceUri, Stream<? extends DynamicNode> children)
|
| Modifier and Type | Method and Description |
|---|---|
| public static DynamicContainer | dynamicContainer(String
the display name for the dynamic container; never
displayName, Iterable<? extends DynamicNode> null or blankcollection of dynamic nodes to execute;
never dynamicNodes)nullFactory for creating a new |
| public static DynamicContainer | dynamicContainer(String
the display name for the dynamic container; never
displayName, Stream<? extends DynamicNode> null or blankstream of dynamic nodes to execute;
never dynamicNodes)nullFactory for creating a new |
| public static DynamicContainer | dynamicContainer(String
the display name for the dynamic container; never
displayName, @Nullable URI null or blanka custom test source URI for the dynamic container;
may be testSourceUri, Stream<? extends DynamicNode> null if the framework should generate the test source based
on the @TestFactory methodstream of dynamic nodes to execute; never dynamicNodes)nullFactory for creating a new |
| public Stream |
| children | back to summary |
|---|---|
| private final Stream<? extends DynamicNode> children | |
| DynamicContainer | back to summary |
|---|---|
| private DynamicContainer(String displayName, @Nullable URI testSourceUri, Stream<? extends DynamicNode> children) | |
| dynamicContainer | back to summary |
|---|---|
| public static DynamicContainer dynamicContainer(String displayName, Iterable<? extends DynamicNode> dynamicNodes) Factory for creating a new The collection of dynamic nodes must not contain
| |
| dynamicContainer | back to summary |
|---|---|
| public static DynamicContainer dynamicContainer(String displayName, Stream<? extends DynamicNode> dynamicNodes) Factory for creating a new The stream of dynamic nodes must not contain
| |
| dynamicContainer | back to summary |
|---|---|
| public static DynamicContainer dynamicContainer(String displayName, @Nullable URI testSourceUri, Stream<? extends DynamicNode> dynamicNodes) Factory for creating a new The stream of dynamic nodes must not contain
| |
| getChildren | back to summary |
|---|---|
| public Stream Get the | |