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 Object
implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
TestTemplateInvocationContextProvider
that supports the
@RepeatedTest
annotation.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate RepeatedTestDisplayNameFormatter
displayNameFormatter
(org.junit.jupiter.api.RepeatedTest repeatedTest, Method method, String displayName) private int
failureThreshold
(org.junit.jupiter.api.RepeatedTest repeatedTest, Method method) 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, Method method)
-
Constructor Details
-
RepeatedTestExtension
RepeatedTestExtension()
-
-
Method Details
-
supportsTestTemplate
public boolean supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
supportsTestTemplate
in interfaceorg.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
provideTestTemplateInvocationContexts
public 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
-
failureThreshold
-
displayNameFormatter
private RepeatedTestDisplayNameFormatter displayNameFormatter(org.junit.jupiter.api.RepeatedTest repeatedTest, Method method, String displayName)
-