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

pack-priv Class RepeatedTestExtension

extends Object
implements TestTemplateInvocationContextProvider
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider, org.junit.jupiter.api.extension.Extension
Static Imports
org.junit.platform.commons.support.AnnotationSupport.findAnnotation, .AnnotationSupport.isAnnotated

TestTemplateInvocationContextProvider that supports the @RepeatedTest annotation.
Since
5.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private RepeatedTestDisplayNameFormatter
displayNameFormatter(RepeatedTest repeatedTest, Method method, String displayName)

private int
failureThreshold(RepeatedTest repeatedTest, Method method)

public Stream<RepeatedTestInvocationContext>
public boolean
supportsTestTemplate(ExtensionContext context)

Implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider.supportsTestTemplate.

Determine if this provider supports providing invocation contexts for the test template method represented by the supplied context.

private int
totalRepetitions(RepeatedTest repeatedTest, Method method)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RepeatedTestExtensionback to summary
pack-priv RepeatedTestExtension()

Method Detail

displayNameFormatterback to summary
private RepeatedTestDisplayNameFormatter displayNameFormatter(RepeatedTest repeatedTest, Method method, String displayName)
failureThresholdback to summary
private int failureThreshold(RepeatedTest repeatedTest, Method method)
provideTestTemplateInvocationContextsback to summary
public Stream<RepeatedTestInvocationContext> provideTestTemplateInvocationContexts(ExtensionContext context)

Implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider.provideTestTemplateInvocationContexts.

Doc from org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider.provideTestTemplateInvocationContexts.

Provide invocation contexts for the test template method represented by the supplied context.

This method is only called by the framework if supportsTestTemplate previously returned true for the same ExtensionContext; this method is allowed to return an empty Stream but not null.

The returned Stream will be properly closed by calling Stream#close(), making it safe to use a resource such as Files.lines().

Annotations
@Override
supportsTestTemplateback to summary
public boolean supportsTestTemplate(ExtensionContext context)

Implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider.supportsTestTemplate.

Doc from org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider.supportsTestTemplate.

Determine if this provider supports providing invocation contexts for the test template method represented by the supplied context.

Annotations
@Override
totalRepetitionsback to summary
private int totalRepetitions(RepeatedTest repeatedTest, Method method)