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,org.junit.jupiter.api.extension.TestInstantiationAwareExtension,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 the current project.-
Nested Class Summary
Nested classes/interfaces inherited from class org.talend.sdk.component.junit.BaseComponentsHandler
BaseComponentsHandler.EmbeddedComponentManager, BaseComponentsHandler.Outputs, BaseComponentsHandler.StateNested classes/interfaces inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.junit.jupiter.api.extension.ExtensionContext.NamespaceFields inherited from class org.talend.sdk.component.junit.BaseComponentsHandler
isolatedPackages, packageName, STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) voidafterEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext) voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext) voiddoInject(org.junit.jupiter.api.extension.ExtensionContext extensionContext) voiddoStart(org.junit.jupiter.api.extension.ExtensionContext extensionContext) voiddoStop(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, withIsolatedPackageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.talend.sdk.component.junit.base.junit5.JUnit5InjectionSupport
findInstance, findInstance, postProcessTestInstance, resolveParameter, supports, supportsParameterMethods inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
getTestInstantiationExtensionContextScope
-
Field Details
-
NAMESPACE
-
-
Constructor Details
-
ComponentExtension
public ComponentExtension()
-
-
Method Details
-
beforeAll
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
injectionMarker
- Specified by:
injectionMarkerin interfaceJUnit5InjectionSupport
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
doStart
-
doStop
-
doInject
-