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
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()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
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
-