Package ch.colabproject.colab.tests.mock
Class LiquibaseTestProducer
- java.lang.Object
-
- ch.colabproject.colab.api.setup.LiquibaseProducer
-
- ch.colabproject.colab.tests.mock.LiquibaseTestProducer
-
public class LiquibaseTestProducer extends LiquibaseProducer
Override default Producer as we do not want to use liquibase in test env- Author:
- maxence
-
-
Constructor Summary
Constructors Constructor Description LiquibaseTestProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description liquibase.resource.ResourceAccessor
create()
Give liquibase access to our classloaderliquibase.integration.cdi.CDILiquibaseConfig
createConfig()
Liquibase configuration which indicates liquibase should not runDataSource
createDataSource()
Give liquibase access to the datasource
-
-
-
Method Detail
-
createConfig
@Produces @Specializes public liquibase.integration.cdi.CDILiquibaseConfig createConfig()
Liquibase configuration which indicates liquibase should not run- Overrides:
createConfig
in classLiquibaseProducer
- Returns:
- the config
-
createDataSource
@Produces @Specializes public DataSource createDataSource()
Give liquibase access to the datasource- Overrides:
createDataSource
in classLiquibaseProducer
- Returns:
- the datasource
-
create
@Produces @Specializes public liquibase.resource.ResourceAccessor create()
Give liquibase access to our classloader- Overrides:
create
in classLiquibaseProducer
- Returns:
- the classloader
-
-