Package org.apache.flink.core.testutils
Class TestContainerExtension<T extends org.testcontainers.containers.GenericContainer<T>>
- java.lang.Object
-
- org.apache.flink.core.testutils.TestContainerExtension<T>
-
- Type Parameters:
T
- TheGenericContainer
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 forTestContainer
implementations.
-
-
Constructor Summary
Constructors Constructor Description TestContainerExtension(Supplier<T> testContainerCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after(org.junit.jupiter.api.extension.ExtensionContext context)
void
before(org.junit.jupiter.api.extension.ExtensionContext context)
T
getTestContainer()
-
-
-
Method Detail
-
getTestContainer
public T getTestContainer()
-
after
public void after(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
after
in interfaceCustomExtension
- Throws:
Exception
-
before
public void before(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
- Specified by:
before
in interfaceCustomExtension
- Throws:
Exception
-
-