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
ADiscoverySelectorthat selects a directory so thatTestEnginescan discover tests or containers based on directories in the file system.- Since:
- 1.0
- See Also:
FileSelector,getDirectory(),getPath(),getRawPath()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetDirectory()Get the selected directory as aFile.java.nio.file.PathgetPath()Get the selected directory as aPathusing the defaultFileSystem.java.lang.StringgetRawPath()Get the selected directory as a raw path.java.lang.StringtoString()
-
-
-
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 aPathusing the defaultFileSystem.- See Also:
getDirectory(),getRawPath()
-
getRawPath
public java.lang.String getRawPath()
Get the selected directory as a raw path.- See Also:
getDirectory(),getPath()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-