Class R2DBCMariaDBTestResourceProvider

java.lang.Object
io.micronaut.testresources.testcontainers.AbstractTestContainersProvider<T>
io.micronaut.testresources.r2dbc.core.AbstractR2DBCTestResourceProvider<org.testcontainers.containers.MariaDBContainer<?>>
io.micronaut.testresources.r2dbc.mariadb.R2DBCMariaDBTestResourceProvider
All Implemented Interfaces:
io.micronaut.core.order.Ordered, TestResourcesResolver, ToggableTestResourcesResolver

public class R2DBCMariaDBTestResourceProvider extends AbstractR2DBCTestResourceProvider<org.testcontainers.containers.MariaDBContainer<?>>
A test resource provider for reactive MariaDB.
  • Field Details

  • Constructor Details

    • R2DBCMariaDBTestResourceProvider

      public R2DBCMariaDBTestResourceProvider()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Description copied from interface: TestResourcesResolver
      Returns a display name for a test resources resolver, used for debugging purposes.
      Returns:
      the display name
    • getSimpleName

      protected String getSimpleName()
      Description copied from class: AbstractTestContainersProvider
      Returns the name of the resource resolver, for example "kafka" or "mysql".
      Specified by:
      getSimpleName in class AbstractTestContainersProvider<org.testcontainers.containers.MariaDBContainer<?>>
      Returns:
      the name of the resolver
    • getDefaultImageName

      protected String getDefaultImageName()
      Description copied from class: AbstractTestContainersProvider
      Returns the default image name.
      Specified by:
      getDefaultImageName in class AbstractTestContainersProvider<org.testcontainers.containers.MariaDBContainer<?>>
      Returns:
      the default image name.
    • extractOptions

      protected Optional<io.r2dbc.spi.ConnectionFactoryOptions> extractOptions(org.testcontainers.containers.GenericContainer<?> container)
      Specified by:
      extractOptions in class AbstractR2DBCTestResourceProvider<org.testcontainers.containers.MariaDBContainer<?>>
    • createContainer

      protected org.testcontainers.containers.MariaDBContainer<?> createContainer(org.testcontainers.utility.DockerImageName imageName, Map<String,Object> requestedProperties, Map<String,Object> testResourcesConfig)
      Description copied from class: AbstractTestContainersProvider
      Creates the test container.
      Specified by:
      createContainer in class AbstractTestContainersProvider<org.testcontainers.containers.MariaDBContainer<?>>
      Parameters:
      imageName - the docker image name
      requestedProperties - the resolved properties
      testResourcesConfig - the test resources configuration
      Returns:
      a container