Class ResourceFilter
java.lang.Object
org.junit.platform.commons.io.ResourceFilter
Resource filter used by reflection and classpath scanning support.
- Since:
- 1.14
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTest whether the given resource matches this filter.static ResourceFilterCreate aResourceFilterinstance from a predicate.
-
Method Details
-
of
Create aResourceFilterinstance from a predicate.- Parameters:
resourcePredicate- the resource predicate; nevernull- Returns:
- an instance of
ResourceFilter; nevernull
-
match
Test whether the given resource matches this filter.- Parameters:
resource- the resource to test; nevernull- Returns:
trueif the resource matches this filter, otherwisefalse
-