Top Description Methods
org.junit.platform.engine.support.descriptor

public Interface UriSource

extends TestSource
Known Direct Subinterfaces
org.junit.platform.engine.support.descriptor.FileSystemSource
Known Direct Implementers
org.junit.platform.engine.support.descriptor.DefaultUriSource
Annotations
@API
status:STABLE
since:1.0
Static Imports
org.apiguardian.api.API.Status.STABLE

A TestSource that can be represented as a URI.
Since
1.0
See Also
org.junit.platform.engine.discovery.UriSelector

Method Summary

Modifier and TypeMethod and Description
public static UriSource

Returns:

an appropriate UriSource for the supplied URI
from
(URI
the URI to use as the source; never null
uri
)

Create a new UriSource using the supplied URI.

public URI

Returns:

the source URI; never null
getUri
()

Get the URI that represents this source.

Method Detail

fromback to summary
public static UriSource from(URI uri)

Create a new UriSource using the supplied URI.

This implementation first attempts to resolve the supplied URI to a path-based UriSource in the local filesystem. If that fails for any reason, an instance of the default UriSource implementation storing the supplied URI as-is will be returned.

Parameters
uri:URI

the URI to use as the source; never null

Returns:UriSource

an appropriate UriSource for the supplied URI

Since
1.3
See Also
org.junit.platform.engine.support.descriptor.FileSource, org.junit.platform.engine.support.descriptor.DirectorySource
getUriback to summary
public URI getUri()

Get the URI that represents this source.

Returns:URI

the source URI; never null