@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.DiscoverySelectors.selectFile(String)
,
DiscoverySelectors.selectFile(File)
,
DirectorySelector
,
getFile()
,
getPath()
,
getRawPath()
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
path |
Constructor and Description |
---|
FileSelector(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
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.
|
int |
hashCode() |
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()
@API(status=STABLE, since="1.3") public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@API(status=STABLE, since="1.3") public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object