Class RepeatedTestExtension
- java.lang.Object
-
- org.junit.jupiter.engine.extension.RepeatedTestExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
class RepeatedTestExtension extends java.lang.Object implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
TestTemplateInvocationContextProvider
that supports the@RepeatedTest
annotation.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description RepeatedTestExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private RepeatedTestDisplayNameFormatter
displayNameFormatter(org.junit.jupiter.api.RepeatedTest repeatedTest, java.lang.reflect.Method method, java.lang.String displayName)
private int
failureThreshold(org.junit.jupiter.api.RepeatedTest repeatedTest, java.lang.reflect.Method method)
java.util.stream.Stream<org.junit.jupiter.api.extension.TestTemplateInvocationContext>
provideTestTemplateInvocationContexts(org.junit.jupiter.api.extension.ExtensionContext context)
boolean
supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext context)
private int
totalRepetitions(org.junit.jupiter.api.RepeatedTest repeatedTest, java.lang.reflect.Method method)
-
-
-
Method Detail
-
supportsTestTemplate
public boolean supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
supportsTestTemplate
in interfaceorg.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
provideTestTemplateInvocationContexts
public java.util.stream.Stream<org.junit.jupiter.api.extension.TestTemplateInvocationContext> provideTestTemplateInvocationContexts(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
provideTestTemplateInvocationContexts
in interfaceorg.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
totalRepetitions
private int totalRepetitions(org.junit.jupiter.api.RepeatedTest repeatedTest, java.lang.reflect.Method method)
-
failureThreshold
private int failureThreshold(org.junit.jupiter.api.RepeatedTest repeatedTest, java.lang.reflect.Method method)
-
displayNameFormatter
private RepeatedTestDisplayNameFormatter displayNameFormatter(org.junit.jupiter.api.RepeatedTest repeatedTest, java.lang.reflect.Method method, java.lang.String displayName)
-
-