Class MySQLJooqxTest<S extends io.vertx.sqlclient.SqlClient>

java.lang.Object
io.github.zero88.jooqx.JooqxTestDefinition.JooqxDBContainerTest<S,org.testcontainers.containers.MySQLContainer<?>>
io.github.zero88.jooqx.spi.mysql.MySQLJooqxTest<S>
All Implemented Interfaces:
DBContainerProvider<org.testcontainers.containers.MySQLContainer<?>>, HasDBProvider<org.testcontainers.containers.MySQLContainer<?>,DBContainerProvider<org.testcontainers.containers.MySQLContainer<?>>>, io.github.zero88.jooqx.JooqDSLProvider, io.github.zero88.jooqx.provider.BaseJooqxFacade<S,io.vertx.sqlclient.Tuple,io.github.zero88.jooqx.JooqxPreparedQuery,io.github.zero88.jooqx.JooqxResultCollector,io.github.zero88.jooqx.JooqxBase<S>>, io.github.zero88.jooqx.provider.BaseJooqxProvider<S,io.vertx.sqlclient.Tuple,io.github.zero88.jooqx.JooqxPreparedQuery,io.github.zero88.jooqx.JooqxResultCollector,io.github.zero88.jooqx.JooqxBase<S>>, io.github.zero88.jooqx.provider.DBProvider<org.testcontainers.containers.MySQLContainer<?>>, io.github.zero88.jooqx.provider.ErrorConverterProvider, io.github.zero88.jooqx.provider.JooqxFacade<S>, io.github.zero88.jooqx.provider.JooqxProvider<S>, io.github.zero88.jooqx.provider.JooqxSQLClientProvider<S>, io.github.zero88.jooqx.provider.SQLClientProvider<S>, io.github.zero88.jooqx.provider.TypeMapperRegistryProvider, MySQLDBProvider, SQLTest<S,io.vertx.sqlclient.Tuple,io.github.zero88.jooqx.JooqxPreparedQuery,io.github.zero88.jooqx.JooqxResultCollector,io.github.zero88.jooqx.JooqxBase<S>,org.testcontainers.containers.MySQLContainer<?>,DBContainerProvider<org.testcontainers.containers.MySQLContainer<?>>>, SQLTest.JooqxTest<S,org.testcontainers.containers.MySQLContainer<?>,DBContainerProvider<org.testcontainers.containers.MySQLContainer<?>>>

public abstract class MySQLJooqxTest<S extends io.vertx.sqlclient.SqlClient> extends JooqxTestDefinition.JooqxDBContainerTest<S,org.testcontainers.containers.MySQLContainer<?>> implements MySQLDBProvider, SQLTest.JooqxTest<S,org.testcontainers.containers.MySQLContainer<?>,DBContainerProvider<org.testcontainers.containers.MySQLContainer<?>>>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.zero88.jooqx.SQLTest

    SQLTest.JooqxTest<S extends io.vertx.sqlclient.SqlClient,K,D extends io.github.zero88.jooqx.provider.DBProvider<K>>, SQLTest.LegacySQLTest<K,D extends io.github.zero88.jooqx.provider.DBProvider<K>,P extends io.vertx.ext.jdbc.spi.DataSourceProvider>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.testcontainers.containers.MySQLContainer<?>
     
    protected io.github.zero88.jooqx.JooqxBase<S>
     
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.testcontainers.containers.MySQLContainer<?>
     
    protected io.vertx.core.json.JsonObject
    Init SQL connection options
    protected @Nullable io.vertx.core.json.JsonObject
    Init SQL pool options
    static void
     
    void
    tearDown(io.vertx.core.Vertx vertx, io.vertx.junit5.VertxTestContext ctx)
     
    void
    tearUp(io.vertx.core.Vertx vertx, io.vertx.junit5.VertxTestContext ctx)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.zero88.jooqx.provider.BaseJooqxFacade

    jooqx, jooqx

    Methods inherited from interface io.github.zero88.jooqx.provider.BaseJooqxProvider

    createPreparedQuery, createResultCollector

    Methods inherited from interface io.github.zero88.jooqx.DBContainerProvider

    createConnOptions

    Methods inherited from interface io.github.zero88.jooqx.provider.ErrorConverterProvider

    errorConverter

    Methods inherited from interface io.github.zero88.jooqx.JooqDSLProvider

    dsl

    Methods inherited from interface io.github.zero88.jooqx.provider.JooqxProvider

    createExecutor

    Methods inherited from interface io.github.zero88.jooqx.provider.JooqxSQLClientProvider

    close

    Methods inherited from interface io.github.zero88.jooqx.spi.mysql.MySQLDBProvider

    dbProvider, defaultPort, init, initDBContainer

    Methods inherited from interface io.github.zero88.jooqx.provider.SQLClientProvider

    open, sqlClientClass

    Methods inherited from interface io.github.zero88.jooqx.SQLTest.JooqxTest

    clientProvider, jooqxProvider

    Methods inherited from interface io.github.zero88.jooqx.provider.TypeMapperRegistryProvider

    typeMapperRegistry
  • Field Details

    • db

      protected org.testcontainers.containers.MySQLContainer<?> db
    • TIMEOUT_IN_SECOND

      public static int TIMEOUT_IN_SECOND
    • jooqx

      protected io.github.zero88.jooqx.JooqxBase<S extends io.vertx.sqlclient.SqlClient> jooqx
    • connOpt

      protected SQLConnectionOption connOpt
  • Constructor Details

    • MySQLJooqxTest

      public MySQLJooqxTest()
  • Method Details

    • getDatabase

      protected org.testcontainers.containers.MySQLContainer<?> getDatabase()
    • setup

      @BeforeAll public static void setup()
    • tearUp

      @BeforeEach public void tearUp(io.vertx.core.Vertx vertx, io.vertx.junit5.VertxTestContext ctx)
    • tearDown

      @AfterEach public void tearDown(io.vertx.core.Vertx vertx, io.vertx.junit5.VertxTestContext ctx)
    • initConnOptions

      protected io.vertx.core.json.JsonObject initConnOptions()
      Init SQL connection options
      Returns:
      sql connection option
    • initPoolOptions

      @Nullable protected @Nullable io.vertx.core.json.JsonObject initPoolOptions()
      Init SQL pool options
      Returns:
      pool options
      See Also:
      • PoolOptions