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 aDiscoverySelector.A resolution is either unresolved, contains a match or multiple matches, or a set of selectors.
- Since:
- 1.5
- See Also:
SelectorResolver
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<SelectorResolver.Match>getMatches()Returns the matches contained by this resolution.Set<? extends DiscoverySelector>getSelectors()Returns the selectors contained by this resolution.booleanisResolved()Whether 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.Resolutionunresolved()Factory for creating unresolved resolutions.
-
-
-
Method Detail
-
unresolved
public static SelectorResolver.Resolution unresolved()
Factory for creating unresolved resolutions.- Returns:
- an unresolved resolution; never
null
-
match
public static SelectorResolver.Resolution match(SelectorResolver.Match 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
public static SelectorResolver.Resolution matches(Set<SelectorResolver.Match> 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
public static SelectorResolver.Resolution selectors(Set<? extends DiscoverySelector> 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
public Set<SelectorResolver.Match> getMatches()
Returns the matches contained by this resolution.- Returns:
- the set of matches; never
nullbut potentially empty
-
getSelectors
public Set<? extends DiscoverySelector> getSelectors()
Returns the selectors contained by this resolution.- Returns:
- the set of selectors; never
nullbut potentially empty
-
-