Interface DatasourceExtension

All Known Implementing Classes:
WithInMemoryDatasource

public interface DatasourceExtension
Provide a DataSource as an JUnit 5 extension
  • Method Summary

    Modifier and Type
    Method
    Description
    getCatalog(org.junit.jupiter.api.extension.ExtensionContext context)
    Retrieve the name of the DataSource catalog
    getDataSource(org.junit.jupiter.api.extension.ExtensionContext context)
    Retrieve the DataSource from the contextual extension Store
  • Method Details

    • getDataSource

      DataSource getDataSource(org.junit.jupiter.api.extension.ExtensionContext context)
      Retrieve the DataSource from the contextual extension Store
      Parameters:
      context - The extension context
      Returns:
      A usable DataSource
    • getCatalog

      String getCatalog(org.junit.jupiter.api.extension.ExtensionContext context)
      Retrieve the name of the DataSource catalog
      Parameters:
      context - The extension context
      Returns:
      The catalog name