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 SummaryModifier 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- 
initializeRun initialization code before a test.- Parameters:
- ds- A reference to the managed- DataSourcewhich is controlled by a- JdbiExtension.
- handle- The shared- Handlewhich is returned from- JdbiExtension.getSharedHandle().
- See Also:
 
- 
cleanupRun cleanup code after a test.- Parameters:
- ds- A reference to the managed- DataSourcewhich is controlled by a- JdbiExtension.
- handle- The shared- Handlewhich is returned from- JdbiExtension.getSharedHandle().
 
 
-