Class FileSelector
- java.lang.Object
-
- org.junit.platform.engine.discovery.FileSelector
-
- All Implemented Interfaces:
DiscoverySelector
@API(status=STABLE, since="1.0") public class FileSelector extends Object implements DiscoverySelector
ADiscoverySelectorthat selects a file so thatTestEnginescan discover tests or containers based on files in the file system.- Since:
- 1.0
- See Also:
DiscoverySelectors.selectFile(String),DiscoverySelectors.selectFile(File),DirectorySelector,getFile(),getPath(),getRawPath()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetFile()Get the selected file as aFile.PathgetPath()StringgetRawPath()Get the selected file as a raw path.StringtoString()
-
-
-
Method Detail
-
getFile
public File getFile()
Get the selected file as aFile.- See Also:
getPath(),getRawPath()
-
getPath
public Path getPath()
- See Also:
getFile(),getRawPath()
-
getRawPath
public String getRawPath()
Get the selected file as a raw path.
-
-