Class TestcontainersSettings.Builder

java.lang.Object
org.apache.flink.connector.testframe.container.TestcontainersSettings.Builder
Enclosing class:
TestcontainersSettings

public static final class TestcontainersSettings.Builder extends Object
The TestContainersSettings builder.
  • Method Details

    • environmentVariable

      public TestcontainersSettings.Builder environmentVariable(String name, String value)
      Sets an environment variable and returns a reference to this Builder enabling method chaining.
      Parameters:
      name - The name of the environment variable.
      value - The value of the environment variable.
      Returns:
      A reference to this Builder.
    • dependsOn

      public TestcontainersSettings.Builder dependsOn(org.testcontainers.containers.GenericContainer<?> container)
      Lets Flink cluster depending on another container, and bind the network of Flink cluster to the dependent one.
    • network

      public TestcontainersSettings.Builder network(org.testcontainers.containers.Network network)
      Sets the network and returns a reference to this Builder enabling method chaining.
      Parameters:
      network - The network to set.
      Returns:
      A reference to this Builder.
    • baseImage

      public TestcontainersSettings.Builder baseImage(String baseImage)
      Sets the baseImage and returns a reference to this Builder enabling method chaining.
      Parameters:
      baseImage - The baseImage to set.
      Returns:
      A reference to this Builder.
    • logger

      public TestcontainersSettings.Builder logger(org.slf4j.Logger logger)
      Sets the baseImage and returns a reference to this Builder enabling method chaining.
      Parameters:
      logger - The logger to set.
      Returns:
      A reference to this Builder.
    • build

      public TestcontainersSettings build()
      Returns a TestContainersSettings built from the parameters previously set.
      Returns:
      A TestContainersSettings built with parameters of this TestContainersSettings.Builder