Class SelectorResolver.Resolution
java.lang.Object
org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
- Enclosing interface:
- SelectorResolver
@API(status=EXPERIMENTAL,
since="1.5")
public static class SelectorResolver.Resolution
extends Object
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:
SelectorResolver
-
Method Summary
Modifier and TypeMethodDescriptionReturns the matches contained by this resolution.Set<? extends DiscoverySelector>Returns the selectors contained by this resolution.booleanWhether this resolution contains matches or selectors.static SelectorResolver.Resolutionmatch(SelectorResolver.Match match)Factory for creating a resolution that contains the suppliedMatch.static SelectorResolver.Resolutionmatches(Set<SelectorResolver.Match> matches)Factory for creating a resolution that contains the suppliedMatches.static SelectorResolver.Resolutionselectors(Set<? extends DiscoverySelector> selectors)Factory for creating a resolution that contains the suppliedDiscoverySelectors.static SelectorResolver.ResolutionFactory 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; nevernullor empty- Returns:
- an resolution that contains the supplied
Matches; nevernull
-
selectors
Factory for creating a resolution that contains the suppliedDiscoverySelectors.- Parameters:
selectors- the resolvedDiscoverySelectors; nevernullor empty- Returns:
- an resolution that contains the supplied
DiscoverySelectors; nevernull
-
isResolved
public boolean isResolved()Whether this resolution contains matches or selectors.- Returns:
trueif this resolution contains matches or selectors
-
getMatches
Returns the matches contained by this resolution.- Returns:
- the set of matches; never
nullbut potentially empty
-
getSelectors
Returns the selectors contained by this resolution.- Returns:
- the set of selectors; never
nullbut potentially empty
-