use of com.netflix.conductor.postgres.PostgresDataSourceProvider in project conductor by Netflix.
the class PerformanceTest method setUp.
@Before
public void setUp() {
TestConfiguration testConfiguration = new TestConfiguration();
configuration = new TestPostgresConfiguration(testConfiguration, "jdbc:postgresql://localhost:54320/conductor?charset=utf8&parseTime=true&interpolateParams=true", 10, 2);
PostgresDataSourceProvider dataSource = new PostgresDataSourceProvider(configuration);
this.dataSource = dataSource.get();
resetAllData(this.dataSource);
flywayMigrate(this.dataSource);
final ObjectMapper objectMapper = new JsonMapperProvider().get();
Q = new PostgresQueueDAO(objectMapper, this.dataSource);
E = new PostgresExecutionDAO(objectMapper, this.dataSource);
}
Aggregations