@API(status=EXPERIMENTAL,
since="5.0")
public class DynamicContainer
extends DynamicNode
DynamicContainer is a container generated at runtime.
It is composed of a display name and an
iterable of DynamicNodes.
Instances of DynamicContainer must be generated by factory methods
annotated with @TestFactory.
| Modifier and Type | Method and Description |
|---|---|
static DynamicContainer |
dynamicContainer(java.lang.String displayName,
java.lang.Iterable<? extends DynamicNode> dynamicNodes)
Factory for creating a new
DynamicContainer for the supplied display
name and a collection of dynamic nodes. |
static DynamicContainer |
dynamicContainer(java.lang.String displayName,
java.util.stream.Stream<? extends DynamicNode> dynamicNodes)
Factory for creating a new
DynamicContainer for the supplied display
name and a stream of dynamic nodes. |
java.util.stream.Stream<? extends DynamicNode> |
getChildren()
Get the
Stream of DynamicNodes associated
with this container. |
getDisplayName, toStringpublic static DynamicContainer dynamicContainer(java.lang.String displayName, java.lang.Iterable<? extends DynamicNode> dynamicNodes)
DynamicContainer for the supplied display
name and a collection of dynamic nodes.
The collection of dynamic nodes must not contain null elements.
displayName - the display name for the dynamic container; never
null or blankdynamicNodes - collection of dynamic nodes to execute;
never nullpublic static DynamicContainer dynamicContainer(java.lang.String displayName, java.util.stream.Stream<? extends DynamicNode> dynamicNodes)
DynamicContainer for the supplied display
name and a stream of dynamic nodes.
The stream of dynamic nodes must not contain null elements.
displayName - the display name for the dynamic container; never
null or blankdynamicNodes - stream of dynamic nodes to execute;
never nullpublic java.util.stream.Stream<? extends DynamicNode> getChildren()
Stream of DynamicNodes associated
with this container.