Top Description Fields Constructors Methods
org.junit.jupiter.api.extension.support

public abstract Class TypeBasedParameterResolver<T extends @Nullable Object>

extends Object
implements ParameterResolver
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.ParameterResolver, org.junit.jupiter.api.extension.TestInstantiationAwareExtension, org.junit.jupiter.api.extension.Extension
Annotations
@API
status:STABLE
since:5.10
Type Parameters
<T>
the type of the parameter supported by this ParameterResolver
Static Imports
org.apiguardian.api.API.Status.STABLE

ParameterResolver adapter which resolves a parameter based on its exact type.
Since
5.6

Field Summary

Modifier and TypeField and Description
private final Type

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Type
private @Nullable ParameterizedType
private Type
public abstract T
resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)

Redeclares org.junit.jupiter.api.extension.ParameterResolver.resolveParameter.

Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

public final boolean
supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)

Implements org.junit.jupiter.api.extension.ParameterResolver.supportsParameter.

Determine if this resolver supports resolution of an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

supportedParameterTypeback to summary
private final Type supportedParameterType

Constructor Detail

TypeBasedParameterResolverback to summary
public TypeBasedParameterResolver()

Method Detail

enclosedTypeOfParameterResolverback to summary
private Type enclosedTypeOfParameterResolver()
findTypeBasedParameterResolverSuperclassback to summary
private @Nullable ParameterizedType findTypeBasedParameterResolverSuperclass(Class<?> clazz)
getParameterTypeback to summary
private Type getParameterType(ParameterContext parameterContext)
resolveParameterback to summary
public abstract T resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException

Redeclares org.junit.jupiter.api.extension.ParameterResolver.resolveParameter.

Doc from org.junit.jupiter.api.extension.ParameterResolver.resolveParameter.

Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

This method is only called by the framework if supportsParameter previously returned true for the same ParameterContext and ExtensionContext.

The java.lang.reflect.Method or java.lang.reflect.Constructor in which the parameter is declared can be retrieved via ParameterContext#getDeclaringExecutable().

Annotations
@Override
supportsParameterback to summary
public final boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)

Implements org.junit.jupiter.api.extension.ParameterResolver.supportsParameter.

Doc from org.junit.jupiter.api.extension.ParameterResolver.supportsParameter.

Determine if this resolver supports resolution of an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

The java.lang.reflect.Method or java.lang.reflect.Constructor in which the parameter is declared can be retrieved via ParameterContext#getDeclaringExecutable().

Annotations
@Override