Uses of Class
org.jdbi.v3.testing.junit5.JdbiExtension
-
Uses of JdbiExtension in org.jdbi.v3.testing.junit5
Modifier and TypeClassDescriptionclass
class
Jdbi H2 JUnit 5 rule.class
Jdbi PostgreSQL JUnit 5 rule using the otj-pg-embedded component.class
Jdbi PostgreSQL JUnit 5 rule using the pg-embedded component.class
Jdbi SQLite JUnit 5 rule.Modifier and TypeMethodDescriptionstatic 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.