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:
-
Method Summary
-
Method Details
-
getUri
URI getUri()Get theURIthat represents this source.- Returns:
- the source
URI; nevernull
-
from
Create a newUriSourceusing the suppliedURI.This implementation first attempts to resolve the supplied
URIto a path-basedUriSourcein the local filesystem. If that fails for any reason, an instance of the defaultUriSourceimplementation storing the suppliedURIas-is will be returned.- Parameters:
uri- the URI to use as the source; nevernull- Returns:
- an appropriate
UriSourcefor the suppliedURI - Since:
- 1.3
- See Also:
-