Class RetryingTestExtension

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.TestExecutionExceptionHandler, org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider

    class RetryingTestExtension
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider, org.junit.jupiter.api.extension.TestExecutionExceptionHandler
    • Field Detail

      • NAMESPACE

        private static final org.junit.jupiter.api.extension.ExtensionContext.Namespace NAMESPACE
    • Constructor Detail

      • RetryingTestExtension

        RetryingTestExtension()
    • 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
      • handleTestExecutionException

        public void handleTestExecutionException​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                 java.lang.Throwable throwable)
                                          throws java.lang.Throwable
        Specified by:
        handleTestExecutionException in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandler
        Throws:
        java.lang.Throwable