Top Description Fields Constructors Methods
org.junit.jupiter.api

public abstract Class DynamicNode

extends Object
Class Inheritance
Known Direct Subclasses
org.junit.jupiter.api.DynamicTest, org.junit.jupiter.api.DynamicContainer
Annotations
@API
status:MAINTAINED
since:5.3
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

DynamicNode serves as the abstract base class for a container or a test case generated at runtime.
Since
5.0
See Also
DynamicTest, DynamicContainer

Field Summary

Modifier and TypeField and Description
private final String
private final @Nullable URI
testSourceUri

Custom test source URI associated with this node; potentially null.

Constructor Summary

AccessConstructor and Description
pack-priv
DynamicNode(String displayName, @Nullable URI testSourceUri)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the display name
getDisplayName
()

Get the display name of this DynamicNode.

public Optional<URI>

Returns:

an Optional containing the custom test source URI; never null but potentially empty
getTestSourceUri
()

Get the custom test source URI of this DynamicNode.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

displayNameback to summary
private final String displayName
testSourceUriback to summary
private final @Nullable URI testSourceUri

Custom test source URI associated with this node; potentially null.

Constructor Detail

DynamicNodeback to summary
pack-priv DynamicNode(String displayName, @Nullable URI testSourceUri)

Method Detail

getDisplayNameback to summary
public String getDisplayName()

Get the display name of this DynamicNode.

Returns:String

the display name

getTestSourceUriback to summary
public Optional<URI> getTestSourceUri()

Get the custom test source URI of this DynamicNode.

Returns:Optional<URI>

an Optional containing the custom test source URI; never null but potentially empty

Since
5.3
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override