Search in sources :

Example 1 with LiquibaseType

use of liquibase.integration.cdi.annotations.LiquibaseType in project liquibase by liquibase.

the class CDITestProducer method createDataSource.

@Produces
@LiquibaseType
public DataSource createDataSource() throws SQLException {
    JDBCDataSource ds = new JDBCDataSource();
    ds.setDatabase("jdbc:hsqldb:mem:test");
    ds.setUser("sa");
    ds.setPassword("");
    return ds;
}
Also used : JDBCDataSource(org.hsqldb.jdbc.JDBCDataSource) Produces(javax.enterprise.inject.Produces) LiquibaseType(liquibase.integration.cdi.annotations.LiquibaseType)

Aggregations

Produces (javax.enterprise.inject.Produces)1 LiquibaseType (liquibase.integration.cdi.annotations.LiquibaseType)1 JDBCDataSource (org.hsqldb.jdbc.JDBCDataSource)1