Class SqlTestContainerConfig

java.lang.Object
io.helidon.data.sql.testing.SqlTestContainerConfig

public final class SqlTestContainerConfig extends Object
Support for testing SQL based Helidon Data with Test Containers.
  • Method Details

    • configureContainer

      public static TestContainerHandler configureContainer(org.testcontainers.containers.GenericContainer<?> container, Supplier<? extends ConfigSource> configSource)
      Configure the test container from the config. We expect node data to be present under the root, with a configuration, or with a list of configuration. This method will use the first configuration to set up the username, password and database name if discovered in config.
      Parameters:
      container - container to configure (before it is started)
      configSource - config source with database configuration (this must be the only config source in test)
      Returns:
      a test container handler, that can be used to start the container, update configuration, and then stop the container