Search in sources :

Example 1 with MainDBChangeLogProvider

use of com.walmartlabs.concord.db.MainDBChangeLogProvider in project concord by walmartlabs.

the class AbstractDaoTest method initDataSource.

@BeforeEach
public void initDataSource() {
    DatabaseConfiguration cfg = new DatabaseConfigurationImpl("jdbc:postgresql://localhost:5432/postgres", "postgres", "q1", 3);
    DatabaseModule db = new DatabaseModule(migrateDb);
    this.dataSource = db.appDataSource(cfg, new MetricRegistry(), Collections.singleton(new MainDBChangeLogProvider()));
    this.cfg = db.appJooqConfiguration(this.dataSource);
}
Also used : DatabaseConfiguration(com.walmartlabs.concord.db.DatabaseConfiguration) MetricRegistry(com.codahale.metrics.MetricRegistry) DatabaseModule(com.walmartlabs.concord.db.DatabaseModule) MainDBChangeLogProvider(com.walmartlabs.concord.db.MainDBChangeLogProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MetricRegistry (com.codahale.metrics.MetricRegistry)1 DatabaseConfiguration (com.walmartlabs.concord.db.DatabaseConfiguration)1 DatabaseModule (com.walmartlabs.concord.db.DatabaseModule)1 MainDBChangeLogProvider (com.walmartlabs.concord.db.MainDBChangeLogProvider)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1