@Internal public class TestCaseInvocationContextProvider extends Object implements org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
This provider will resolve TestEnvironment and ExternalContextFactory from the
storage in JUnit's ExtensionContext, inject them into test method, and register a AfterTestExecutionCallback for closing the external context after the execution of test case.
| Constructor and Description |
|---|
TestCaseInvocationContextProvider() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public boolean supportsTestTemplate(org.junit.jupiter.api.extension.ExtensionContext context)
supportsTestTemplate in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProviderpublic java.util.stream.Stream<org.junit.jupiter.api.extension.TestTemplateInvocationContext> provideTestTemplateInvocationContexts(org.junit.jupiter.api.extension.ExtensionContext context)
provideTestTemplateInvocationContexts in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProviderCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.