Class DefaultContainerizedExternalSystem<C extends org.testcontainers.containers.GenericContainer<C>>
- java.lang.Object
-
- org.apache.flink.connector.testframe.external.DefaultContainerizedExternalSystem<C>
-
- Type Parameters:
C- Type of underlying container
- All Implemented Interfaces:
TestResource
@Experimental public class DefaultContainerizedExternalSystem<C extends org.testcontainers.containers.GenericContainer<C>> extends Object implements TestResource
Default implementation of external system based on container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultContainerizedExternalSystem.Builder<C extends org.testcontainers.containers.GenericContainer<C>>Builder forDefaultContainerizedExternalSystem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <C extends org.testcontainers.containers.GenericContainer<C>>
DefaultContainerizedExternalSystem.Builder<C>builder()Get a builder forDefaultContainerizedExternalSystem.CgetContainer()voidstartUp()Start up the test resource.voidtearDown()Tear down the test resource.
-
-
-
Method Detail
-
builder
public static <C extends org.testcontainers.containers.GenericContainer<C>> DefaultContainerizedExternalSystem.Builder<C> builder()
Get a builder forDefaultContainerizedExternalSystem.- Type Parameters:
C- Type of underlying container- Returns:
- An instance of builder
-
startUp
public void startUp() throws ExceptionDescription copied from interface:TestResourceStart up the test resource.The implementation of this method should be idempotent.
- Specified by:
startUpin interfaceTestResource- Throws:
Exception- if anything wrong when starting the resource
-
tearDown
public void tearDown() throws ExceptionDescription copied from interface:TestResourceTear down the test resource.The test resource should be able to tear down even without a startup (could be a no-op).
- Specified by:
tearDownin interfaceTestResource- Throws:
Exception- if anything wrong when tearing the resource down
-
getContainer
public C getContainer()
-
-