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.
  • Field Details

    • NAMESPACE

      public static final org.junit.jupiter.api.extension.ExtensionContext.Namespace NAMESPACE
  • Constructor Details

  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
    • injectionMarker

      public Class<? extends Annotation> injectionMarker()
      Specified by:
      injectionMarker in interface JUnit5InjectionSupport
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
      Specified by:
      afterEach in interface org.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)