DiscoverySelector
@API(status=STABLE, since="1.0") public class FileSelector extends java.lang.Object implements DiscoverySelector
DiscoverySelector
that selects a file so that
TestEngines
can discover tests or containers based on files in the
file system.DirectorySelector
,
getFile()
,
getPath()
,
getRawPath()
Modifier and Type | Method | Description |
---|---|---|
java.io.File |
getFile() |
Get the selected file as a
File . |
java.nio.file.Path |
getPath() |
Get the selected file as a
Path using the
default FileSystem . |
java.lang.String |
getRawPath() |
Get the selected file as a raw path.
|
java.lang.String |
toString() |
public java.io.File getFile()
File
.getPath()
,
getRawPath()
public java.nio.file.Path getPath()
Path
using the
default FileSystem
.getFile()
,
getRawPath()
public java.lang.String getRawPath()
public java.lang.String toString()
toString
in class java.lang.Object