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 Details

    • RepeatedTestExtension

      RepeatedTestExtension()
  • Method Details

    • supportsTestTemplate

      public boolean supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      supportsTestTemplate in interface org.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 interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
    • totalRepetitions

      private int totalRepetitions(org.junit.jupiter.api.RepeatedTest repeatedTest, Method method)
    • failureThreshold

      private int failureThreshold(org.junit.jupiter.api.RepeatedTest repeatedTest, Method method)
    • displayNameFormatter

      private RepeatedTestDisplayNameFormatter displayNameFormatter(org.junit.jupiter.api.RepeatedTest repeatedTest, Method method, String displayName)