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

java.lang.Object
io.github.zero88.jooqx.JooqxTestDefinition.JooqxDBContainerTest<S,org.testcontainers.containers.PostgreSQLContainer<?>>
io.github.zero88.jooqx.spi.pg.PgSQLJooqxTest<S>
All Implemented Interfaces:
DBContainerProvider<org.testcontainers.containers.PostgreSQLContainer<?>>, HasDBProvider<org.testcontainers.containers.PostgreSQLContainer<?>,DBContainerProvider<org.testcontainers.containers.PostgreSQLContainer<?>>>, 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.PostgreSQLContainer<?>>, 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, PgSQLDBProvider, 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.PostgreSQLContainer<?>,DBContainerProvider<org.testcontainers.containers.PostgreSQLContainer<?>>>, SQLTest.JooqxTest<S,org.testcontainers.containers.PostgreSQLContainer<?>,DBContainerProvider<org.testcontainers.containers.PostgreSQLContainer<?>>>

public abstract class PgSQLJooqxTest<S extends io.vertx.sqlclient.SqlClient> extends JooqxTestDefinition.JooqxDBContainerTest<S,org.testcontainers.containers.PostgreSQLContainer<?>> implements PgSQLDBProvider, SQLTest.JooqxTest<S,org.testcontainers.containers.PostgreSQLContainer<?>,DBContainerProvider<org.testcontainers.containers.PostgreSQLContainer<?>>>
  • 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.PostgreSQLContainer<?>
     
    protected io.github.zero88.jooqx.JooqxBase<S>
     
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    assertPostgresVersion(org.jooq.Record rec)
     
    protected org.testcontainers.containers.PostgreSQLContainer<?>
     
    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.pg.PgSQLDBProvider

    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.PostgreSQLContainer<?> 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

    • PgSQLJooqxTest

      public PgSQLJooqxTest()
  • Method Details

    • assertPostgresVersion

      public static void assertPostgresVersion(org.jooq.Record rec)
    • getDatabase

      protected org.testcontainers.containers.PostgreSQLContainer<?> 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