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 java.lang.Object implements DiscoverySelectorADiscoverySelectorthat 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 booleanequals(java.lang.Object o)java.io.FilegetFile()Get the selected file as aFile.java.nio.file.PathgetPath()Get the selected file as aPathusing the defaultFileSystem.java.lang.StringgetRawPath()Get the selected file as a raw path.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
Get the selected file as aFile.- See Also:
getPath(),getRawPath()
-
getPath
public java.nio.file.Path getPath()
Get the selected file as aPathusing the defaultFileSystem.- See Also:
getFile(),getRawPath()
-
getRawPath
public java.lang.String getRawPath()
Get the selected file as a raw path.
-
equals
@API(status=STABLE, since="1.3") public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object- Since:
- 1.3
-
hashCode
@API(status=STABLE, since="1.3") public int hashCode()- Overrides:
hashCodein classjava.lang.Object- Since:
- 1.3
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-