Module org.junit.platform.engine
Interface UriSource
-
- All Superinterfaces:
java.io.Serializable
,TestSource
- All Known Subinterfaces:
FileSystemSource
- All Known Implementing Classes:
DefaultUriSource
,DirectorySource
,FileSource
@API(status=STABLE, since="1.0") public interface UriSource extends TestSource
ATestSource
that can be represented as aURI
.- Since:
- 1.0
- See Also:
UriSelector
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static UriSource
from(java.net.URI uri)
Create a newUriSource
using the suppliedURI
.java.net.URI
getUri()
Get theURI
that represents this source.
-
-
-
Method Detail
-
getUri
java.net.URI getUri()
Get theURI
that represents this source.- Returns:
- the source
URI
; nevernull
-
from
static UriSource from(java.net.URI uri)
Create a newUriSource
using the suppliedURI
.This implementation first attempts to resolve the supplied
URI
to a path-basedUriSource
in the local filesystem. If that fails for any reason, an instance of the defaultUriSource
implementation storing the suppliedURI
as-is will be returned.- Parameters:
uri
- the URI to use as the source; nevernull
- Returns:
- an appropriate
UriSource
for the suppliedURI
- Since:
- 1.3
- See Also:
FileSource
,DirectorySource
-
-