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 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 String
getDisplayName()
Get the display name of thisDynamicNode
.Optional<URI>
getTestSourceUri()
Get the custom test sourceURI
of thisDynamicNode
.String
toString()
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Get the display name of thisDynamicNode
.- Returns:
- the display name
-
getTestSourceUri
public Optional<URI> getTestSourceUri()
Get the custom test sourceURI
of thisDynamicNode
.- Returns:
- an
Optional
containing the custom test sourceURI
; nevernull
but potentially empty - Since:
- 5.3
-
-