Uses of Class
org.jdbi.v3.testing.junit5.JdbiExtension
Packages that use JdbiExtension
Package
Description
JUnit 5 testing support.
Jdbi test support for Testcontainer based JDBC containers.
-
Uses of JdbiExtension in org.jdbi.v3.testing.junit5
Subclasses of JdbiExtension in org.jdbi.v3.testing.junit5Modifier and TypeClassDescriptionclass
class
Very simple implementation of a JUnit 5JdbiExtension
which can handle any JDBC connection.class
Jdbi H2 JUnit 5 rule.class
Deprecated, for removal: This API element is subject to removal in a future version.The OtjPostgres project ships its artifact as an automatic module with filename based module name.class
Jdbi PostgreSQL JUnit 5 rule using the pg-embedded component.class
Jdbi SQLite JUnit 5 rule.Methods in org.jdbi.v3.testing.junit5 that return JdbiExtensionModifier and TypeMethodDescriptionfinal JdbiExtension
JdbiExtension.enableLeakChecker
(boolean enable) Enable tracking of cleanable resources and handles when running tests.static JdbiExtension
JdbiExtension.externalPostgres
(String hostname, Integer port, String database, String username, String password) Creates an extension that uses an external (outside the scope of an unit test class) postgres database.static JdbiExtension
JdbiExtension.h2()
Creates a new extension using the H2 database.final JdbiExtension
JdbiExtension.installPlugins()
When creating theJdbi
instance, call theJdbi.installPlugins()
method, which loads all plugins discovered by theServiceLoader
API.static JdbiExtension
JdbiExtension.postgres
(de.softwareforge.testing.postgres.junit5.EmbeddedPgExtension pg) Creates a new extension using a managed, embedded postgres database.static JdbiExtension
JdbiExtension.sqlite()
Creates a new extension using the SQLite database.final <C extends JdbiConfig<C>>
JdbiExtensionJdbiExtension.withConfig
(Class<C> configClass, Consumer<C> configurer) Set aJdbiConfig
parameter when creating theJdbi
instance.final JdbiExtension
JdbiExtension.withInitializer
(JdbiExtensionInitializer initializer) Sets aJdbiExtensionInitializer
to initialize theJdbi
instance or the attached data source before running a test.final JdbiExtension
JdbiExtension.withPlugin
(JdbiPlugin plugin) Install aJdbiPlugin
when creating theJdbi
instance.final JdbiExtension
JdbiExtension.withPlugins
(JdbiPlugin... pluginList) Install multipleJdbiPlugin
s when creating theJdbi
instance. -
Uses of JdbiExtension in org.jdbi.v3.testing.junit5.tc
Subclasses of JdbiExtension in org.jdbi.v3.testing.junit5.tcModifier and TypeClassDescriptionfinal class
Support Testcontainer JDBC containers as database for Jdbi tests.Methods in org.jdbi.v3.testing.junit5.tc that return JdbiExtensionModifier and TypeMethodDescriptionstatic JdbiExtension
JdbiTestcontainersExtension.instance
(TestcontainersDatabaseInformation databaseInformation, JdbcDatabaseContainer<?> jdbcDatabaseContainer) Create a newJdbiExtension
that uses the suppliedJdbcDatabaseContainer
as database.static JdbiExtension
JdbiTestcontainersExtension.instance
(JdbcDatabaseContainer<?> jdbcDatabaseContainer) Create a newJdbiExtension
that uses the suppliedJdbcDatabaseContainer
as database.