Uses of Interface
org.junit.platform.commons.support.Resource
Package
Description
Maintained common support APIs provided by the JUnit Platform.
Internal common utilities for JUnit.
Configurable test discovery implementation that can be reused by different test engines.
-
Uses of Resource in org.junit.platform.commons.support
Modifier and TypeMethodDescriptionReflectionSupport.findAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.ReflectionSupport.findAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionSupport.findAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Find all resources in the suppliedbasePackageName
that match the specifiedresourceFilter
predicate.ReflectionSupport.streamAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.ReflectionSupport.streamAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionSupport.streamAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Find all resources in the suppliedbasePackageName
that match the specifiedresourceFilter
predicate.ReflectionSupport.tryToGetResources
(String classpathResourceName) Tries to get the resources for the supplied classpath resource name.ReflectionSupport.tryToGetResources
(String classpathResourceName, ClassLoader classLoader) Tries to load the resources for the supplied classpath resource name, using the suppliedClassLoader
.Modifier and TypeMethodDescriptionReflectionSupport.findAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.ReflectionSupport.findAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionSupport.findAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Find all resources in the suppliedbasePackageName
that match the specifiedresourceFilter
predicate.ReflectionSupport.streamAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.ReflectionSupport.streamAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionSupport.streamAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Find all resources in the suppliedbasePackageName
that match the specifiedresourceFilter
predicate. -
Uses of Resource in org.junit.platform.commons.util
Modifier and TypeMethodDescriptionReflectionUtils.findAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) ModuleUtils.findAllResourcesInModule
(String moduleName, Predicate<Resource> filter) Find all resources for the given module name.ReflectionUtils.findAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionUtils.findAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) ReflectionUtils.streamAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) ReflectionUtils.streamAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionUtils.streamAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) ReflectionUtils.tryToGetResources
(String classpathResourceName) Try to get resources by their name, using theClassLoaderUtils.getDefaultClassLoader()
.ReflectionUtils.tryToGetResources
(String classpathResourceName, ClassLoader classLoader) Try to get resources by their name, using the suppliedClassLoader
.Modifier and TypeMethodDescriptionReflectionUtils.findAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) ModuleUtils.findAllResourcesInModule
(String moduleName, Predicate<Resource> filter) Find all resources for the given module name.ReflectionUtils.findAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionUtils.findAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) ReflectionUtils.streamAllResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) ReflectionUtils.streamAllResourcesInModule
(String moduleName, Predicate<Resource> resourceFilter) ReflectionUtils.streamAllResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) -
Uses of Resource in org.junit.platform.engine.discovery
Modifier and TypeMethodDescriptionClasspathResourceSelector.getClasspathResources()
Get the selectedresources
.Modifier and TypeMethodDescriptionstatic ClasspathResourceSelector
DiscoverySelectors.selectClasspathResource
(Set<Resource> classpathResources) Create aClasspathResourceSelector
for the supplied classpath resources. -
Uses of Resource in org.junit.platform.engine.support.discovery
Modifier and TypeMethodDescriptionEngineDiscoveryRequestResolver.Builder.addResourceContainerSelectorResolver
(Predicate<Resource> resourceFilter) Add a predefined resolver that resolvesClasspathRootSelectors
,ModuleSelectors
, andPackageSelectors
intoClasspathResourceSelectors
by scanning for resources that satisfy the supplied predicate in the respective class containers to this builder.