Package org.talend.sdk.component.junit5
Class ComponentExtension
- java.lang.Object
-
- org.talend.sdk.component.junit.BaseComponentsHandler
-
- org.talend.sdk.component.junit5.ComponentExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.ParameterResolver
,org.junit.jupiter.api.extension.TestInstancePostProcessor
,JUnit5InjectionSupport
,ComponentsHandler
public class ComponentExtension extends BaseComponentsHandler implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback, JUnit5InjectionSupport, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
Extension allowing the test to use aComponentsHandler
and auto register components from current project.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.talend.sdk.component.junit.BaseComponentsHandler
BaseComponentsHandler.EmbeddedComponentManager, BaseComponentsHandler.Outputs, BaseComponentsHandler.State
-
-
Field Summary
Fields Modifier and Type Field Description static org.junit.jupiter.api.extension.ExtensionContext.Namespace
NAMESPACE
-
Fields inherited from class org.talend.sdk.component.junit.BaseComponentsHandler
isolatedPackages, packageName, STATE
-
-
Constructor Summary
Constructors Constructor Description ComponentExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
void
afterEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
void
beforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
void
doInject(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
void
doStart(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
void
doStop(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
Class<? extends Annotation>
injectionMarker()
-
Methods inherited from class org.talend.sdk.component.junit.BaseComponentsHandler
asManager, collect, collect, collect, collect, collect, collectAsList, collectAsList, createMapper, createProcessor, findService, findService, getCollectedData, getTestPlugins, injectServices, process, resetState, setInputData, start, withIsolatedPackage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.talend.sdk.component.junit.base.junit5.JUnit5InjectionSupport
findInstance, findInstance, postProcessTestInstance, resolveParameter, supports, supportsParameter
-
-
-
-
Field Detail
-
NAMESPACE
public static final org.junit.jupiter.api.extension.ExtensionContext.Namespace NAMESPACE
-
-
Constructor Detail
-
ComponentExtension
public ComponentExtension()
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
injectionMarker
public Class<? extends Annotation> injectionMarker()
- Specified by:
injectionMarker
in interfaceJUnit5InjectionSupport
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
- Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
- Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
doStart
public void doStart(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-
doStop
public void doStop(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-
doInject
public void doInject(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-
-