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 a
ComponentsHandler
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
Modifier and TypeFieldDescriptionstatic final org.junit.jupiter.api.extension.ExtensionContext.Namespace
Fields inherited from class org.talend.sdk.component.junit.BaseComponentsHandler
isolatedPackages, packageName, STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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>
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 Details
-
NAMESPACE
-
-
Constructor Details
-
ComponentExtension
public ComponentExtension()
-
-
Method Details
-
beforeAll
- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
injectionMarker
- Specified by:
injectionMarker
in interfaceJUnit5InjectionSupport
-
beforeEach
- Specified by:
beforeEach
in interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
- Specified by:
afterEach
in interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
doStart
-
doStop
-
doInject
-