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.Object
DynamicNode
serves 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.String
getDisplayName()
Get the display name of thisDynamicNode
.java.util.Optional<java.net.URI>
getTestSourceUri()
Get the custom test sourceURI
of thisDynamicNode
.java.lang.String
toString()
-
-
-
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 sourceURI
of thisDynamicNode
.- Returns:
- an
Optional
containing the custom test sourceURI
; nevernull
but potentially empty - Since:
- 5.3
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-