@API(status=STABLE, since="1.0") public interface UriSource extends TestSource
TestSource
that can be represented as a URI
.UriSelector
Modifier and Type | Method and Description |
---|---|
static UriSource |
from(URI uri)
Create a new
UriSource using the supplied URI . |
URI |
getUri()
Get the
URI that represents this source. |
static UriSource from(URI uri)
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.
uri
- the URI to use as the source; never null
UriSource
for the supplied URI
FileSource
,
DirectorySource
Copyright © 2020. All rights reserved.