Top Description Fields Constructors Methods
org.junit.jupiter.engine.descriptor

pack-priv Class MethodSourceSupport

extends Object
Class Inheritance
Imports
java.net.URI, org.junit.platform.commons.util.Preconditions, .ReflectionUtils, org.junit.platform.engine.discovery.DiscoverySelectors, .MethodSelector, org.junit.platform.engine.support.descriptor.MethodSource

Jupiter internal support for creating MethodSource from URI.
Since
5.5
See Also
MethodSource, MethodSelector

Field Summary

Modifier and TypeField and Description
pack-priv static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static MethodSource

Returns:

a new MethodSource; never null
from
(URI
the URI for the method; never null
uri
)

Create a new MethodSource from the supplied URI.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

METHOD_SCHEMEback to summary
pack-priv static final String METHOD_SCHEME

Constructor Detail

MethodSourceSupportback to summary
private MethodSourceSupport()

Method Detail

fromback to summary
pack-priv static MethodSource from(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:URI

the URI for the method; never null

Returns:MethodSource

a new MethodSource; never null

Since
5.5
See Also
METHOD_SCHEME, DiscoverySelectors#selectMethod(String)