Class DirectorySelector
- java.lang.Object
-
- org.junit.platform.engine.discovery.DirectorySelector
-
- All Implemented Interfaces:
DiscoverySelector
@API(status=STABLE, since="1.0") public class DirectorySelector extends java.lang.Object implements DiscoverySelector
ADiscoverySelector
that selects a directory so thatTestEngines
can discover tests or containers based on directories in the file system.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.io.File
getDirectory()
Get the selected directory as aFile
.java.nio.file.Path
getPath()
Get the selected directory as aPath
using the defaultFileSystem
.java.lang.String
getRawPath()
Get the selected directory as a raw path.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getDirectory
public java.io.File getDirectory()
Get the selected directory as aFile
.- See Also:
getPath()
,getRawPath()
-
getPath
public java.nio.file.Path getPath()
Get the selected directory as aPath
using the defaultFileSystem
.- See Also:
getDirectory()
,getRawPath()
-
getRawPath
public java.lang.String getRawPath()
Get the selected directory as a raw path.- See Also:
getDirectory()
,getPath()
-
equals
@API(status=STABLE, since="1.3") public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
- Since:
- 1.3
-
hashCode
@API(status=STABLE, since="1.3") public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- Since:
- 1.3
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-