Top Description Fields Constructors Methods
org.junit.jupiter.engine.extension

pack-priv Class RepeatedTestInvocationContext

extends Object
implements TestTemplateInvocationContext
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.TestTemplateInvocationContext
Imports
java.util.List, org.junit.jupiter.api.extension.Extension, .TestTemplateInvocationContext

TestTemplateInvocationContext for a @RepeatedTest.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final RepeatedTestDisplayNameFormatter
private final DefaultRepetitionInfo

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<Extension>
public String
getDisplayName(int invocationIndex)

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

Get the display name for this invocation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

formatterback to summary
private final RepeatedTestDisplayNameFormatter formatter
repetitionInfoback to summary
private final DefaultRepetitionInfo repetitionInfo

Constructor Detail

RepeatedTestInvocationContextback to summary
pack-priv RepeatedTestInvocationContext(DefaultRepetitionInfo repetitionInfo, RepeatedTestDisplayNameFormatter formatter)

Method Detail

getAdditionalExtensionsback to summary
public List<Extension> getAdditionalExtensions()

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

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

Get the additional extensions for this invocation.

The extensions provided by this method will only be used for this invocation of the test 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 default org.junit.jupiter.api.extension.TestTemplateInvocationContext.getDisplayName.

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

Get the display name for this invocation.

The supplied invocationIndex is incremented by the framework with each test 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