Class MethodSourceSupport


  • class MethodSourceSupport
    extends java.lang.Object
    Jupiter internal support for creating MethodSource from URI.
    Since:
    5.5
    See Also:
    MethodSource, MethodSelector
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String METHOD_SCHEME  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static org.junit.platform.engine.support.descriptor.MethodSource from​(java.net.URI uri)
      Create a new MethodSource from the supplied URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MethodSourceSupport

        MethodSourceSupport()
    • Method Detail

      • from

        static org.junit.platform.engine.support.descriptor.MethodSource from​(java.net.URI uri)
        Create a new MethodSource from the supplied URI.

        The supplied URI should be of the form method:<FQMN> where FQMN is the fully qualified method name. See DiscoverySelectors.selectMethod(String) for the supported formats.

        The scheme-specific part component of the URI will be used as fully qualified class name. The fragment component of the URI will be used to retrieve the method name and method parameter types.
        Parameters:
        uri - the URI for the method; never null
        Returns:
        a new MethodSource; never null
        Since:
        5.5
        See Also:
        METHOD_SCHEME, DiscoverySelectors.selectMethod(String)