Top Inners Fields Constructors Methods
org.junit.jupiter.params

pack-priv Class ResolverFacade

extends Object
Class Inheritance
Static Imports
java.lang.System.lineSeparator, java.util.Objects.requireNonNull, java.util.stream.Collectors.joining, .Collectors.toMap, org.junit.platform.commons.support.AnnotationSupport.findAnnotation, .AnnotationSupport.isAnnotated, .ReflectionSupport.makeAccessible, org.junit.platform.commons.util.KotlinReflectionUtils.getKotlinSuspendingFunctionParameters, .KotlinReflectionUtils.isKotlinSuspendingFunction, .ReflectionUtils.isInnerClass

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record
private static record
private static record
private static record
private static class
private static class
pack-priv static record
private abstract static class
private static interface

Field Summary

Modifier and TypeField and Description
private final Set<? extends ResolverFacade.ResolvableParameterDeclaration>
private final ResolverFacade.DefaultParameterDeclarations
private final int
private final @Nullable ResolverFacade.RequiredParameterCount
private final Map<ParameterDeclaration, ResolverFacade.Resolver>

Constructor Summary

AccessConstructor and Description
private
ResolverFacade(AnnotatedElement sourceElement, NavigableMap<Integer, ? extends ResolverFacade.ResolvableParameterDeclaration> indexedParameters, Set<? extends ResolverFacade.ResolvableParameterDeclaration> aggregatorParameters, int parameterIndexOffset, @Nullable ResolverFacade.RequiredParameterCount requiredParameterCount)

Method Summary

Modifier and TypeMethod and Description
private static <T> T
configurationErrorOrSuccess(List<String> errors, Supplier<T> successfulResult)

pack-priv static ResolverFacade
create(Class<?> clazz, List<Field> fields)

pack-priv static ResolverFacade
create(Constructor<?> constructor, ParameterizedClass annotation)

pack-priv static ResolverFacade
create(Method method, Annotation annotation)

private static ResolverFacade
create(Executable executable, Annotation annotation, int indexOffset)

Create a new ResolverFacade for the supplied Executable.

private static ResolverFacade
create(Executable executable, Annotation annotation, int indexOffset, Parameter[] parameters)

private static ResolverFacade.Aggregator
private static ResolverFacade.Converter
createConverter(ParameterDeclaration declaration, ExtensionContext extensionContext)

pack-priv ArgumentSetLifecycleMethod.ParameterResolver
pack-priv int
determineConsumedArgumentCount(EvaluatedArgumentSet arguments)

Determine the number of arguments that are considered consumed by the parameter declarations in this resolver.

pack-priv int
determineConsumedArgumentLength(int totalLength)

Determine the length of the arguments array that is considered consumed by the parameter declarations in this resolver.

private Optional<? extends ResolverFacade.ResolvableParameterDeclaration>
findDeclaration(int parameterIndex)

private Stream<ParameterDeclaration>
pack-priv ParameterDeclarations
pack-priv Optional<String>

Returns:

an Optional containing the name of the parameter
getParameterName
(int parameterIndex)

Get the name of the parameter with the supplied index, if it is present and declared before the aggregators.

pack-priv @Nullable ResolverFacade.RequiredParameterCount
private ResolverFacade.Resolver
pack-priv boolean
private static String
private static ParameterResolutionException
parameterResolutionException(String message, Exception cause, int index)

pack-priv @Nullable Object
resolve(ParameterContext parameterContext, ExtensionContext extensionContext, EvaluatedArgumentSet arguments, int invocationIndex, ResolutionCache resolutionCache)

Resolve the parameter for the supplied context using the supplied arguments.

private @Nullable Object
resolve(ResolverFacade.ResolvableParameterDeclaration parameterDeclaration, ExtensionContext extensionContext, EvaluatedArgumentSet arguments, int invocationIndex, Optional<ParameterContext> parameterContext)

pack-priv void
resolveAndInjectFields(Object testInstance, ExtensionContext extensionContext, EvaluatedArgumentSet arguments, int invocationIndex, ResolutionCache resolutionCache)

private void
setField(Object testInstance, ResolverFacade.FieldParameterDeclaration declaration, ExtensionContext extensionContext, EvaluatedArgumentSet arguments, int invocationIndex, ResolutionCache resolutionCache)

private int
toLogicalIndex(ParameterContext parameterContext)

private static void
private static NavigableMap<Integer, ResolverFacade.FieldParameterDeclaration>
private static void
private static void
private static List<String>
validateLifecycleMethodParameters(ResolverFacade originalResolverFacade, ResolverFacade lifecycleMethodResolverFacade, Map<ParameterDeclaration, ResolverFacade.ResolvableParameterDeclaration> parameterDeclarationMapping)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait