Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String displayName  
      private java.net.URI testSourceUri
      Custom test source URI associated with this node; potentially null.
    • Constructor Summary

      Constructors 
      Constructor Description
      DynamicNode​(java.lang.String displayName, java.net.URI testSourceUri)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDisplayName()
      Get the display name of this DynamicNode.
      java.util.Optional<java.net.URI> getTestSourceUri()
      Get the custom test source URI of this DynamicNode.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • displayName

        private final java.lang.String displayName
      • testSourceUri

        private final java.net.URI testSourceUri
        Custom test source URI associated with this node; potentially null.
    • Constructor Detail

      • DynamicNode

        DynamicNode​(java.lang.String displayName,
                    java.net.URI testSourceUri)
    • Method Detail

      • getDisplayName

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

        public java.util.Optional<java.net.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object