@API(status=STABLE, since="1.0") public class DirectorySelector extends java.lang.Object implements DiscoverySelector
DiscoverySelector
that selects a directory so that
TestEngines
can discover tests or containers based on directories in the
file system.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
path |
Constructor and Description |
---|
DirectorySelector(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.io.File |
getDirectory()
Get the selected directory as a
File . |
java.nio.file.Path |
getPath()
Get the selected directory as a
Path using the
default FileSystem . |
java.lang.String |
getRawPath()
Get the selected directory as a raw path.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.io.File getDirectory()
File
.getPath()
,
getRawPath()
public java.nio.file.Path getPath()
Path
using the
default FileSystem
.getDirectory()
,
getRawPath()
public java.lang.String getRawPath()
getDirectory()
,
getPath()
@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