Module org.junit.platform.engine
Interface UriSource
- All Superinterfaces:
Serializable
,TestSource
- All Known Subinterfaces:
FileSystemSource
- All Known Implementing Classes:
DirectorySource
,FileSource
A
TestSource
that can be represented as a URI
.- Since:
- 1.0
- See Also:
UriSelector
-
Method Summary
-
Method Details
-
getUri
URI getUri()Get theURI
that represents this source.- Returns:
- the source
URI
; nevernull
-
from
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
-