Package org.jdbi.v3.testing.junit5
Class JdbiSqliteExtension
java.lang.Object
org.jdbi.v3.testing.junit5.JdbiExtension
org.jdbi.v3.testing.junit5.JdbiSqliteExtension
- All Implemented Interfaces:
- AfterAllCallback,- AfterEachCallback,- BeforeAllCallback,- BeforeEachCallback,- Extension,- ParameterResolver,- TestInstantiationAwareExtension
Jdbi SQLite JUnit 5 rule.
 Override methods for special case construction:
 
     @RegisterExtension
     public JdbiExtension extension = new JdbiSqliteExtension() {
         @Override
         protected DataSource createDataSource() {
            ...
         }
     };
 ExtendWith:
 
 @ExtendWith(JdbiSqliteExtension.class)
 public class DatabaseTest {
     @Test
     public void testWithJdbi(Jdbi jdbi) {
         ...
     }
     @Test
     public void testWithHandle(Handle handle) {
         ...
     }
 }
 - 
Nested Class SummaryNested classes/interfaces inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtensionTestInstantiationAwareExtension.ExtensionContextScope
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.jdbi.v3.testing.junit5.JdbiExtensionafterAll, afterEach, attach, beforeAll, beforeEach, enableLeakChecker, externalPostgres, getJdbi, getSharedHandle, h2, installPlugins, openHandle, otjEmbeddedPostgres, postgres, resolveParameter, sqlite, supportsParameter, withConfig, withInitializer, withPlugin, withPluginsMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtensiongetTestInstantiationExtensionContextScope
- 
Constructor Details- 
JdbiSqliteExtensionpublic JdbiSqliteExtension()
- 
JdbiSqliteExtension
 
- 
- 
Method Details- 
getUrlDescription copied from class:JdbiExtensionReturns a JDBC url representing the data source used by this extension. This url is database-specific and may or may not be used to connect to the data source outside testing code that uses this extension (e.g. theJdbiSqliteExtensionreturns a constant uri for all database instances).- Specified by:
- getUrlin class- JdbiExtension
- Returns:
- A string representing the JDBC URL.
 
 
-