Package org.jdbi.v3.testing.junit5
Interface JdbiExtensionInitializer
- All Known Implementing Classes:
 JdbiFlywayMigration
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
Initialize the data source before running a test. JdbiExtensionInitializer instances are often used to create the DDL schema for a test or preload data into
 the data source.
- 
Method Summary
Modifier and TypeMethodDescriptiondefault voidcleanup(DataSource ds, Handle handle) Run cleanup code after a test.voidinitialize(DataSource ds, Handle handle) Run initialization code before a test. 
- 
Method Details
- 
initialize
Run initialization code before a test.- Parameters:
 ds- A reference to the managedDataSourcewhich is controlled by aJdbiExtension.handle- The sharedHandlewhich is returned fromJdbiExtension.getSharedHandle().- See Also:
 
 - 
cleanup
Run cleanup code after a test.- Parameters:
 ds- A reference to the managedDataSourcewhich is controlled by aJdbiExtension.handle- The sharedHandlewhich is returned fromJdbiExtension.getSharedHandle().
 
 -