Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepeatedTestExtension

        RepeatedTestExtension()
    • Method Detail

      • supportsTestTemplate

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