Search in sources :

Example 1 with PostgresDataSourceProvider

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);
}
Also used : PostgresExecutionDAO(com.netflix.conductor.dao.postgres.PostgresExecutionDAO) TestConfiguration(com.netflix.conductor.core.execution.TestConfiguration) PostgresQueueDAO(com.netflix.conductor.dao.postgres.PostgresQueueDAO) PostgresDataSourceProvider(com.netflix.conductor.postgres.PostgresDataSourceProvider) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) JsonMapperProvider(com.netflix.conductor.common.utils.JsonMapperProvider) Before(org.junit.Before)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 JsonMapperProvider (com.netflix.conductor.common.utils.JsonMapperProvider)1 TestConfiguration (com.netflix.conductor.core.execution.TestConfiguration)1 PostgresExecutionDAO (com.netflix.conductor.dao.postgres.PostgresExecutionDAO)1 PostgresQueueDAO (com.netflix.conductor.dao.postgres.PostgresQueueDAO)1 PostgresDataSourceProvider (com.netflix.conductor.postgres.PostgresDataSourceProvider)1 Before (org.junit.Before)1