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 ClassesModifier and TypeClassDescriptionstatic classDefaultContainerizedExternalSystem.Builder<C extends org.testcontainers.containers.GenericContainer<C>>Builder forDefaultContainerizedExternalSystem. -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends org.testcontainers.containers.GenericContainer<C>>
DefaultContainerizedExternalSystem.Builder<C>builder()Get a builder forDefaultContainerizedExternalSystem.voidstartUp()Start up the test resource.voidtearDown()Tear down the test resource.
-
Method Details
-
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
Description 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
Description 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
-