Package fr.ght1pc9kc.testy.jooq
Interface DatasourceExtension
- All Known Implementing Classes:
WithInMemoryDatasource
public interface DatasourceExtension
Provide a
DataSource as an JUnit 5 extension-
Method Summary
Modifier and TypeMethodDescriptiongetCatalog(org.junit.jupiter.api.extension.ExtensionContext context) Retrieve the name of the DataSource cataloggetDataSource(org.junit.jupiter.api.extension.ExtensionContext context) Retrieve theDataSourcefrom the contextual extension Store
-
Method Details
-
getDataSource
Retrieve theDataSourcefrom the contextual extension Store- Parameters:
context- The extension context- Returns:
- A usable DataSource
-
getCatalog
Retrieve the name of the DataSource catalog- Parameters:
context- The extension context- Returns:
- The catalog name
-