Top Inners Fields Constructors Methods
org.junit.jupiter.engine.descriptor

pack-priv abstract Class ExclusiveResourceCollector

extends Object
Class Inheritance
Known Direct Subclasses
org.junit.jupiter.engine.descriptor.ExclusiveResourceCollector.DefaultExclusiveResourceCollector
Static Imports
org.junit.jupiter.api.parallel.ResourceLockTarget.SELF, org.junit.platform.commons.support.AnnotationSupport.findRepeatableAnnotations

Since
5.12

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final ExclusiveResourceCollector

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static ExclusiveResourceCollector
pack-priv Stream<ExclusiveResource>
pack-priv abstract Stream<ExclusiveResource>
pack-priv abstract Stream<ExclusiveResource>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NO_EXCLUSIVE_RESOURCESback to summary
private static final ExclusiveResourceCollector NO_EXCLUSIVE_RESOURCES

Constructor Detail

ExclusiveResourceCollectorback to summary
pack-priv ExclusiveResourceCollector()

Method Detail

fromback to summary
pack-priv static ExclusiveResourceCollector from(AnnotatedElement element)
getAllExclusiveResourcesback to summary
pack-priv Stream<ExclusiveResource> getAllExclusiveResources(Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>> providerToLocks)
getDynamicResourcesback to summary
pack-priv abstract Stream<ExclusiveResource> getDynamicResources(Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>> providerToLocks)
getStaticResourcesForback to summary
pack-priv abstract Stream<ExclusiveResource> getStaticResourcesFor(ResourceLockTarget target)
org.junit.jupiter.engine.descriptor back to summary

private Class ExclusiveResourceCollector.DefaultExclusiveResourceCollector

extends ExclusiveResourceCollector
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final List<ResourceLock>
private @Nullable List<ResourceLocksProvider>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Stream<ExclusiveResource>
private List<ResourceLocksProvider>
pack-priv Stream<ExclusiveResource>
private static Stream<ResourceLocksProvider>
instantiate(Class<? extends ResourceLocksProvider>[] providers)

private static ExclusiveResource.LockMode
Inherited from org.junit.jupiter.engine.descriptor.ExclusiveResourceCollector:
fromgetAllExclusiveResources

Field Detail

annotationsback to summary
private final List<ResourceLock> annotations
providersback to summary
private @Nullable List<ResourceLocksProvider> providers

Constructor Detail

DefaultExclusiveResourceCollectorback to summary
pack-priv DefaultExclusiveResourceCollector(List<ResourceLock> annotations)

Method Detail

getDynamicResourcesback to summary
pack-priv Stream<ExclusiveResource> getDynamicResources(Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>> providerToLocks)

Implements abstract org.junit.jupiter.engine.descriptor.ExclusiveResourceCollector.getDynamicResources.

Annotations
@Override
getProvidersback to summary
private List<ResourceLocksProvider> getProviders()
getStaticResourcesForback to summary
pack-priv Stream<ExclusiveResource> getStaticResourcesFor(ResourceLockTarget target)

Implements abstract org.junit.jupiter.engine.descriptor.ExclusiveResourceCollector.getStaticResourcesFor.

Annotations
@Override
instantiateback to summary
private static Stream<ResourceLocksProvider> instantiate(Class<? extends ResourceLocksProvider>[] providers)
toLockModeback to summary
private static ExclusiveResource.LockMode toLockMode(ResourceAccessMode mode)