Uses of Interface
org.junit.platform.commons.support.Resource
Packages that use Resource
Package
Description
Common support APIs provided by the JUnit Platform.
Classpath scanning 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
Classes in org.junit.platform.commons.support that implement ResourceMethods in org.junit.platform.commons.support that return types with arguments of type ResourceModifier 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) Try to get the resources for the supplied classpath resource name.ReflectionSupport.tryToGetResources
(String classpathResourceName, ClassLoader classLoader) Try to load the resources for the supplied classpath resource name, using the suppliedClassLoader
.Method parameters in org.junit.platform.commons.support with type arguments of type ResourceModifier 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.support.scanning
Methods in org.junit.platform.commons.support.scanning that return types with arguments of type ResourceModifier and TypeMethodDescriptionClasspathScanner.scanForResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.DefaultClasspathScanner.scanForResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) ClasspathScanner.scanForResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.DefaultClasspathScanner.scanForResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Method parameters in org.junit.platform.commons.support.scanning with type arguments of type ResourceModifier and TypeMethodDescriptionClasspathScanner.scanForResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.DefaultClasspathScanner.scanForResourcesInClasspathRoot
(URI root, Predicate<Resource> resourceFilter) ClasspathScanner.scanForResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) Find all resources in the supplied classpathroot
that match the specifiedresourceFilter
predicate.DefaultClasspathScanner.scanForResourcesInPackage
(String basePackageName, Predicate<Resource> resourceFilter) -
Uses of Resource in org.junit.platform.commons.util
Methods in org.junit.platform.commons.util that return types with arguments of type ResourceModifier 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
.Method parameters in org.junit.platform.commons.util with type arguments of type ResourceModifier 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
Methods in org.junit.platform.engine.discovery that return types with arguments of type ResourceModifier and TypeMethodDescriptionClasspathResourceSelector.getClasspathResources()
Get the selectedresources
.Method parameters in org.junit.platform.engine.discovery with type arguments of type ResourceModifier 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
Method parameters in org.junit.platform.engine.support.discovery with type arguments of type ResourceModifier 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.