Package org.junit.jupiter.api
Class DynamicNode
- java.lang.Object
-
- org.junit.jupiter.api.DynamicNode
-
- Direct Known Subclasses:
DynamicContainer,DynamicTest
@API(status=MAINTAINED, since="5.3") public abstract class DynamicNode extends java.lang.ObjectDynamicNodeserves as the abstract base class for a container or a test case generated at runtime.- Since:
- 5.0
- See Also:
DynamicTest,DynamicContainer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Get the display name of thisDynamicNode.java.util.Optional<java.net.URI>getTestSourceUri()Get the custom test sourceURIof thisDynamicNode.java.lang.StringtoString()
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
Get the display name of thisDynamicNode.- Returns:
- the display name
-
getTestSourceUri
public java.util.Optional<java.net.URI> getTestSourceUri()
Get the custom test sourceURIof thisDynamicNode.- Returns:
- an
Optionalcontaining the custom test sourceURI; nevernullbut potentially empty - Since:
- 5.3
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-