Top Fields Constructors Methods
org.junit.jupiter.params

pack-priv Class ParameterizedClassInvocationContext

extends ParameterizedInvocationContext<ParameterizedClassContext>
implements ClassTemplateInvocationContext
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.ClassTemplateInvocationContext
Static Imports
org.junit.jupiter.api.TestInstance.Lifecycle.PER_METHOD

Field Summary

Modifier and TypeField and Description
private final ResolutionCache
Inherited from org.junit.jupiter.params.ParameterizedInvocationContext:
argumentsdeclarationContextinvocationIndex

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private AfterParameterizedClassInvocationMethodInvoker
private BeforeParameterizedClassInvocationMethodInvoker
private ClassTemplateConstructorParameterResolver
private Extension
private Stream<Extension>
private Extension
public List<Extension>
public String
public void

Field Detail

resolutionCacheback to summary
private final ResolutionCache resolutionCache

Constructor Detail

ParameterizedClassInvocationContextback to summary
pack-priv ParameterizedClassInvocationContext(ParameterizedClassContext classContext, ParameterizedInvocationNameFormatter formatter, Arguments arguments, int invocationIndex)

Method Detail

createAfterParameterizedClassInvocationMethodInvokerback to summary
private AfterParameterizedClassInvocationMethodInvoker createAfterParameterizedClassInvocationMethodInvoker(ArgumentSetLifecycleMethod method)
createBeforeParameterizedClassInvocationMethodInvokerback to summary
private BeforeParameterizedClassInvocationMethodInvoker createBeforeParameterizedClassInvocationMethodInvoker(ArgumentSetLifecycleMethod method)
createExtensionForConstructorInjectionback to summary
private ClassTemplateConstructorParameterResolver createExtensionForConstructorInjection()
createExtensionForFieldInjectionback to summary
private Extension createExtensionForFieldInjection()
createLifecycleMethodInvokersback to summary
private Stream<Extension> createLifecycleMethodInvokers()
createParameterInjectorback to summary
private Extension createParameterInjector()
getAdditionalExtensionsback to summary
public List<Extension> getAdditionalExtensions()

Overrides default org.junit.jupiter.api.extension.ClassTemplateInvocationContext.getAdditionalExtensions.

Doc from org.junit.jupiter.api.extension.ClassTemplateInvocationContext.getAdditionalExtensions.

Get the additional extensions for this invocation.

The extensions provided by this method will only be used for this invocation of the class template. Thus, it does not make sense to return an extension that acts solely on the container level (e.g. BeforeAllCallback).

The default implementation returns an empty list.

Annotations
@Override
getDisplayNameback to summary
public String getDisplayName(int invocationIndex)

Overrides org.junit.jupiter.params.ParameterizedInvocationContext.getDisplayName.

Overrides default org.junit.jupiter.api.extension.ClassTemplateInvocationContext.getDisplayName.

Doc from org.junit.jupiter.api.extension.ClassTemplateInvocationContext.getDisplayName.

Get the display name for this invocation.

The supplied invocationIndex is incremented by the framework with each container invocation. Thus, in the case of multiple active providers, only the first active provider receives indices starting with 1.

The default implementation returns the supplied invocationIndex wrapped in brackets — for example, [1], [42], etc.

Annotations
@Override
prepareInvocationback to summary
public void prepareInvocation(ExtensionContext context)

Overrides org.junit.jupiter.params.ParameterizedInvocationContext.prepareInvocation.

Overrides default org.junit.jupiter.api.extension.ClassTemplateInvocationContext.prepareInvocation.

Doc from org.junit.jupiter.api.extension.ClassTemplateInvocationContext.prepareInvocation.

Prepare the imminent invocation of the class template.

This may be used, for example, to store entries in the Store to benefit from its cleanup support or for retrieval by other extensions.

Annotations
@Override