Index

A B C E F G H I J M O P R S W 
All Classes and Interfaces|All Packages

A

after() - Method in class org.jdbi.v3.testing.JdbiRule
 
afterAll(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
 
afterAll(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiPostgresExtension
 
afterEach(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
 
afterEach(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiPostgresExtension
 
attach(Class<T>) - Method in class org.jdbi.v3.testing.JdbiRule
Attach an extension (such as a SqlObject) to the managed handle.
attach(Class<T>) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Convenience method to attach an extension (such as a SqlObject) to the shared handle.

B

before() - Method in class org.jdbi.v3.testing.JdbiRule
 
before() - Static method in class org.jdbi.v3.testing.Migration
Create new Migration.
beforeAll(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
 
beforeAll(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiPostgresExtension
 
beforeEach(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
 
beforeEach(ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiPostgresExtension
 

C

cleanAfter() - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Deprecated.
The default changed to true so this call actually does nothing.
cleanAfter() - Method in class org.jdbi.v3.testing.Migration
Will drop all objects in the configured schemas after tests using Flyway.
cleanAfter(boolean) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Drop all objects in the configured schemas using Flyway after the test finishes.
cleanAfter(boolean) - Method in class org.jdbi.v3.testing.Migration
Controls whether to drop all objects in the configured schemas after running the tests using Flyway.
cleanup(DataSource, Handle) - Method in interface org.jdbi.v3.testing.junit5.JdbiExtensionInitializer
Run cleanup code after a test.
cleanup(DataSource, Handle) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
 
customize(Consumer<EmbeddedPostgres.Builder>) - Method in class org.jdbi.v3.testing.junit5.JdbiOtjPostgresExtension
 

E

embeddedPostgres() - Static method in class org.jdbi.v3.testing.JdbiRule
Create a JdbiRule with an embedded PostgreSQL instance.
embeddedPostgres(Consumer<EmbeddedPostgres.Builder>) - Static method in class org.jdbi.v3.testing.JdbiRule
Create a JdbiRule with an embedded PostgreSQL instance.
enableLeakChecker(boolean) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Enable tracking of cleanable resources and handles when running tests.
externalPostgres(String, Integer, String, String, String) - Static method in class org.jdbi.v3.testing.JdbiRule
Create a JdbiRule using an external PostgreSQL instance.
externalPostgres(String, Integer, String, String, String) - Static method in class org.jdbi.v3.testing.junit5.JdbiExtension
Creates an extension that uses an external (outside the scope of an unit test class) postgres database.

F

flywayMigration() - Static method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Returns an instance of JdbiFlywayMigration which can be configured and used as a JdbiExtensionInitializer.

G

getHandle() - Method in class org.jdbi.v3.testing.JdbiRule
Get the single Handle instance opened for the duration of this test case.
getJdbi() - Method in class org.jdbi.v3.testing.JdbiRule
Get Jdbi, in case you want to open additional handles to the same data source.
getJdbi() - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Returns a Jdbi instance linked to the data source used by this extension.
getSharedHandle() - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Returns a shared Handle used by the extension.
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Returns a JDBC url representing the data source used by this extension.
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiExternalPostgresExtension
 
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiGenericExtension
 
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiH2Extension
 
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiOtjPostgresExtension
 
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiPostgresExtension
 
getUrl() - Method in class org.jdbi.v3.testing.junit5.JdbiSqliteExtension
 

H

h2() - Static method in class org.jdbi.v3.testing.JdbiRule
Create a JdbiRule with an in-memory H2 database instance.
h2() - Static method in class org.jdbi.v3.testing.junit5.JdbiExtension
Creates a new extension using the H2 database.

I

initialize(DataSource, Handle) - Method in interface org.jdbi.v3.testing.junit5.JdbiExtensionInitializer
Run initialization code before a test.
initialize(DataSource, Handle) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
 
installPlugins() - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
When creating the Jdbi instance, call the Jdbi.installPlugins() method, which loads all plugins discovered by the ServiceLoader API.

J

JdbiExtension - Class in org.jdbi.v3.testing.junit5
Common functionality for all JUnit 5 extensions.
JdbiExtensionInitializer - Interface in org.jdbi.v3.testing.junit5
Initialize the data source before running a test.
JdbiExternalPostgresExtension - Class in org.jdbi.v3.testing.junit5
 
JdbiFlywayMigration - Class in org.jdbi.v3.testing.junit5
Use Flyway to create a database schema and/or preload a database instance.
JdbiGenericExtension - Class in org.jdbi.v3.testing.junit5
Very simple implementation of a JUnit 5 JdbiExtension which can handle any JDBC connection.
JdbiGenericExtension(String) - Constructor for class org.jdbi.v3.testing.junit5.JdbiGenericExtension
Creates a new instance for a given JDBC URI.
JdbiH2Extension - Class in org.jdbi.v3.testing.junit5
Jdbi H2 JUnit 5 rule.
JdbiH2Extension() - Constructor for class org.jdbi.v3.testing.junit5.JdbiH2Extension
 
JdbiH2Extension(String) - Constructor for class org.jdbi.v3.testing.junit5.JdbiH2Extension
Allows setting the options string for the H2 database.
JdbiOtjPostgresExtension - Class in org.jdbi.v3.testing.junit5
Jdbi PostgreSQL JUnit 5 rule using the otj-pg-embedded component.
JdbiOtjPostgresExtension() - Constructor for class org.jdbi.v3.testing.junit5.JdbiOtjPostgresExtension
 
JdbiPostgresExtension - Class in org.jdbi.v3.testing.junit5
Jdbi PostgreSQL JUnit 5 rule using the pg-embedded component.
JdbiPostgresExtension() - Constructor for class org.jdbi.v3.testing.junit5.JdbiPostgresExtension
 
JdbiRule - Class in org.jdbi.v3.testing
JUnit @Rule to manage a Jdbi instance pointed to a managed database.
JdbiRule() - Constructor for class org.jdbi.v3.testing.JdbiRule
 
JdbiSqliteExtension - Class in org.jdbi.v3.testing.junit5
Jdbi SQLite JUnit 5 rule.
JdbiSqliteExtension() - Constructor for class org.jdbi.v3.testing.junit5.JdbiSqliteExtension
 

M

migrateWithFlyway() - Method in class org.jdbi.v3.testing.JdbiRule
migrateWithFlyway(String...) - Method in class org.jdbi.v3.testing.JdbiRule
Migration - Class in org.jdbi.v3.testing
Represents a Flyway migration Jdbi should run.
Migration() - Constructor for class org.jdbi.v3.testing.Migration
 

O

openHandle() - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Open a new Handle to the used data source.
org.jdbi.v3.testing - package org.jdbi.v3.testing
JUnit 4 testing support.
org.jdbi.v3.testing.junit5 - package org.jdbi.v3.testing.junit5
JUnit 5 testing support.
otjEmbeddedPostgres() - Static method in class org.jdbi.v3.testing.junit5.JdbiExtension
Creates a new extension using a managed, embedded postgres database.

P

postgres(EmbeddedPgExtension) - Static method in class org.jdbi.v3.testing.junit5.JdbiExtension
Creates a new extension using a managed, embedded postgres database.

R

resolveParameter(ParameterContext, ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
 

S

sqlite() - Static method in class org.jdbi.v3.testing.JdbiRule
Create a JdbiRule with an in-memory Sqlite database instance.
sqlite() - Static method in class org.jdbi.v3.testing.junit5.JdbiExtension
Creates a new extension using the SQLite database.
supportsParameter(ParameterContext, ExtensionContext) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
 

W

withConfig(Class<C>, Consumer<C>) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Set a JdbiConfig parameter when creating the Jdbi instance.
withCredentials(String, String) - Method in class org.jdbi.v3.testing.junit5.JdbiGenericExtension
Sets the username and password.
withCredentials(String, String) - Method in class org.jdbi.v3.testing.junit5.JdbiH2Extension
Sets the H2 username and password.
withDefaultPath() - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Use Default db/migration Flyway schema migration location.
withDefaultPath() - Method in class org.jdbi.v3.testing.Migration
Use Default db/migration Flyway schema migration location.
withInitializer(JdbiExtensionInitializer) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Sets a JdbiExtensionInitializer to initialize the Jdbi instance or the attached data source before running a test.
withMigration(Migration) - Method in class org.jdbi.v3.testing.JdbiRule
Run database migration.
withPath(String) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Add a custom flyway migration path.
withPath(String) - Method in class org.jdbi.v3.testing.Migration
Add flyway migration path.
withPaths(String...) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Add custom flyway migration paths.
withPaths(String...) - Method in class org.jdbi.v3.testing.Migration
Add flyway migration paths.
withPlugin(JdbiPlugin) - Method in class org.jdbi.v3.testing.JdbiRule
Install a plugin into JdbiRule.
withPlugin(JdbiPlugin) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Install a JdbiPlugin when creating the Jdbi instance.
withPlugins() - Method in class org.jdbi.v3.testing.JdbiRule
Discover and install plugins from the classpath.
withPlugins(JdbiPlugin...) - Method in class org.jdbi.v3.testing.junit5.JdbiExtension
Install multiple JdbiPlugins when creating the Jdbi instance.
withSchema(String) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Add flyway migration schema.
withSchema(String) - Method in class org.jdbi.v3.testing.Migration
Add flyway migration schema.
withSchemas(String...) - Method in class org.jdbi.v3.testing.junit5.JdbiFlywayMigration
Add flyway migration schemas.
withSchemas(String...) - Method in class org.jdbi.v3.testing.Migration
Add flyway migration schemas.
withUser(String) - Method in class org.jdbi.v3.testing.junit5.JdbiGenericExtension
Sets the username.
withUser(String) - Method in class org.jdbi.v3.testing.junit5.JdbiH2Extension
Sets the H2 username.
A B C E F G H I J M O P R S W 
All Classes and Interfaces|All Packages