public class RepeatIfExceptionsCondition extends Object implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider, org.junit.jupiter.api.extension.AfterTestExecutionCallback
| Constructor and Description |
|---|
RepeatIfExceptionsCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
Check if exceptions that will appear in test same as we wait
|
java.util.stream.Stream<org.junit.jupiter.api.extension.TestTemplateInvocationContext> |
provideTestTemplateInvocationContexts(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
Context call TestTemplateInvocationContext
|
boolean |
supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
Check that test method contain
RepeatedIfExceptionsTest annotation |
public boolean supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
RepeatedIfExceptionsTest annotationsupportsTestTemplate in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProviderextensionContext - - encapsulates the context in which the current test or container is being executedpublic java.util.stream.Stream<org.junit.jupiter.api.extension.TestTemplateInvocationContext> provideTestTemplateInvocationContexts(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
provideTestTemplateInvocationContexts in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProviderextensionContext - - Test Class Contextpublic void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws Exception
afterTestExecution in interface org.junit.jupiter.api.extension.AfterTestExecutionCallbackextensionContext - - Test Class ContextException - - error if occurredCopyright © 2018. All rights reserved.