java.lang.Object
org.junit.platform.engine.discovery.PackageSelector
- All Implemented Interfaces:
DiscoverySelector
@API(status=STABLE,
since="1.0")
public class PackageSelector
extends Object
implements DiscoverySelector
A
DiscoverySelector
that selects a package name so that
TestEngines
can discover
tests or containers based on packages.- Since:
- 1.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the selected package name.int
hashCode()
Return the identifier of this selector.toString()
-
Method Details
-
getPackageName
Get the selected package name. -
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
-