Module org.junit.platform.engine
Class SelectorResolver.Resolution
java.lang.Object
org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
- Enclosing interface:
SelectorResolver
The result of an attempt to resolve a
DiscoverySelector
.
A resolution is either unresolved, contains a match or multiple matches, or a set of selectors.
- Since:
- 1.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the matches contained by this resolution.Set
<? extends DiscoverySelector> Returns the selectors contained by this resolution.boolean
Whether this resolution contains matches or selectors.static SelectorResolver.Resolution
match
(SelectorResolver.Match match) Factory for creating a resolution that contains the suppliedMatch
.static SelectorResolver.Resolution
matches
(Set<SelectorResolver.Match> matches) Factory for creating a resolution that contains the suppliedMatches
.static SelectorResolver.Resolution
selectors
(Set<? extends DiscoverySelector> selectors) Factory for creating a resolution that contains the suppliedDiscoverySelectors
.static SelectorResolver.Resolution
Factory for creating unresolved resolutions.
-
Method Details
-
unresolved
Factory for creating unresolved resolutions.- Returns:
- an unresolved resolution; never
null
-
match
Factory for creating a resolution that contains the suppliedMatch
.- Parameters:
match
- the resolvedMatch
; nevernull
- Returns:
- an resolution that contains the supplied
Match
; nevernull
-
matches
Factory for creating a resolution that contains the suppliedMatches
.- Parameters:
matches
- the resolvedMatches
; nevernull
or empty- Returns:
- an resolution that contains the supplied
Matches
; nevernull
-
selectors
Factory for creating a resolution that contains the suppliedDiscoverySelectors
.- Parameters:
selectors
- the resolvedDiscoverySelectors
; nevernull
or empty- Returns:
- an resolution that contains the supplied
DiscoverySelectors
; nevernull
-
isResolved
public boolean isResolved()Whether this resolution contains matches or selectors.- Returns:
true
if this resolution contains matches or selectors
-
getMatches
Returns the matches contained by this resolution.- Returns:
- the set of matches; never
null
but potentially empty
-
getSelectors
Returns the selectors contained by this resolution.- Returns:
- the set of selectors; never
null
but potentially empty
-