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:
  • 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
    • getExecutionMode

      @API(status=EXPERIMENTAL, since="6.1") public Optional<ExecutionMode> getExecutionMode()
      Returns the ExecutionMode of this DynamicNode.
      Returns:
      the ExecutionMode of this DynamicNode
      Since:
      6.1
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object