Class FilterResult
java.lang.Object
org.junit.platform.engine.FilterResult
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexcluded()Returnstrueif the filtered object should be excluded.static FilterResultFactory for creating excluded results.Get the reason why the filtered object should be included or excluded, if available.booleanincluded()Returnstrueif the filtered object should be included.static FilterResultFactory for creating included results.static FilterResultincludedIf(boolean included) Factory for creating filter results based on the condition given.static FilterResultincludedIf(boolean included, Supplier<@Nullable String> inclusionReasonSupplier, Supplier<@Nullable String> exclusionReasonSupplier) Factory for creating filter results based on the condition given.toString()
-
Method Details
-
included
Factory for creating included results.- Parameters:
reason- the reason why the filtered object was included- Returns:
- an included
FilterResultwith the given reason
-
excluded
Factory for creating excluded results.- Parameters:
reason- the reason why the filtered object was excluded- Returns:
- an excluded
FilterResultwith the given reason
-
includedIf
Factory for creating filter results based on the condition given.- Parameters:
included- whether the filtered object should be included- Returns:
- a valid
FilterResultfor the given condition
-
includedIf
public static FilterResult includedIf(boolean included, Supplier<@Nullable String> inclusionReasonSupplier, Supplier<@Nullable String> exclusionReasonSupplier) Factory for creating filter results based on the condition given.- Parameters:
included- whether the filtered object should be includedinclusionReasonSupplier- supplier for the reason in case of inclusionexclusionReasonSupplier- supplier for the reason in case of exclusion- Returns:
- a valid
FilterResultfor the given condition
-
included
public boolean included()Returnstrueif the filtered object should be included.- Returns:
trueif the filtered object should be included
-
excluded
public boolean excluded()Returnstrueif the filtered object should be excluded.- Returns:
trueif the filtered object should be excluded
-
getReason
-
toString
-