Module org.junit.platform.engine
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 Object
implements DiscoverySelector
A
DiscoverySelector
that selects a directory so that
TestEngines
can discover tests or containers based on directories in the
file system.- Since:
- 1.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the selected directory as aFile
.getPath()
Get the selected directory as a raw path.int
hashCode()
Return the identifier of this selector.toString()
-
Method Details
-
getDirectory
Get the selected directory as aFile
.- See Also:
-
getPath
- See Also:
-
getRawPath
Get the selected directory as a raw path.- See Also:
-
equals
-
hashCode
-
toString
-
toIdentifier
Description copied from interface:DiscoverySelector
Return the identifier of this selector.The returned identifier has to be parsable by a corresponding
DiscoverySelectorIdentifierParser
.- Specified by:
toIdentifier
in interfaceDiscoverySelector
- Returns:
- the identifier of this selector or empty if it is not supported;
never
null
-