Class TestContainerExtension<T extends org.testcontainers.containers.GenericContainer<T>>

java.lang.Object
org.apache.flink.core.testutils.TestContainerExtension<T>
Type Parameters:
T - The GenericContainer that shall be managed.
All Implemented Interfaces:
CustomExtension

public class TestContainerExtension<T extends org.testcontainers.containers.GenericContainer<T>> extends Object implements CustomExtension
TestContainerExtension provides common functionality for TestContainer implementations.
  • Constructor Details

    • TestContainerExtension

      public TestContainerExtension(Supplier<T> testContainerCreator)
  • Method Details

    • getTestContainer

      public T getTestContainer()
    • after

      public void after(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      after in interface CustomExtension
      Throws:
      Exception
    • before

      public void before(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      before in interface CustomExtension
      Throws:
      Exception