java.lang.Object
org.junit.platform.engine.discovery.UriSelector
- All Implemented Interfaces:
DiscoverySelector
@API(status=STABLE,
since="1.0")
public class UriSelector
extends Object
implements DiscoverySelector
A
DiscoverySelector
that selects a URI
so that
TestEngines
can discover tests or containers based on URIs.- Since:
- 1.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getUri()
Get the selectedURI
.int
hashCode()
Return the identifier of this selector.toString()
-
Method Details
-
getUri
Get the selectedURI
. -
equals
-
hashCode
-
toString
-
toIdentifier
Description copied from interface:DiscoverySelector
Return the identifier of this selector.The returned identifier must be parsable by a corresponding
DiscoverySelectorIdentifierParser
.The default implementation returns
Optional.empty()
. Can be overridden by concrete implementations.- Specified by:
toIdentifier
in interfaceDiscoverySelector
- Returns:
- an
Optional
containing the identifier of this selector; nevernull
but potentially empty if the selector does not support identifiers
-