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 Details

    • getDisplayName

      public String getDisplayName()
      Get the display name of this DynamicNode.
      Returns:
      the display name
    • getTestSourceUri

      public Optional<URI> getTestSourceUri()
      Get the custom test source URI of this DynamicNode.
      Returns:
      an Optional containing the custom test source URI; never null but potentially empty
      Since:
      5.3
    • toString

      public String toString()
      Overrides:
      toString in class Object