Search in sources :

Example 1 with DatabaseTsBoundPersisterConfiguration

use of com.palantir.timelock.config.DatabaseTsBoundPersisterConfiguration in project atlasdb by palantir.

the class DatabaseTsBoundPersisterConfigurationTest method canCreateWithInMemoryKvsConfig.

@Test
public void canCreateWithInMemoryKvsConfig() {
    DatabaseTsBoundPersisterConfiguration config = ImmutableDatabaseTsBoundPersisterConfiguration.builder().keyValueServiceConfig(new InMemoryAtlasDbConfig()).build();
    assertThat(config).isNotNull();
}
Also used : ImmutableDatabaseTsBoundPersisterConfiguration(com.palantir.timelock.config.ImmutableDatabaseTsBoundPersisterConfiguration) DatabaseTsBoundPersisterConfiguration(com.palantir.timelock.config.DatabaseTsBoundPersisterConfiguration) InMemoryAtlasDbConfig(com.palantir.atlasdb.memory.InMemoryAtlasDbConfig) Test(org.junit.Test)

Example 2 with DatabaseTsBoundPersisterConfiguration

use of com.palantir.timelock.config.DatabaseTsBoundPersisterConfiguration in project atlasdb by palantir.

the class TimestampBoundStoreConfigDeserializationTest method assertTimestampBoundPersisterConfigurationCorrect.

@Override
public void assertTimestampBoundPersisterConfigurationCorrect(TsBoundPersisterConfiguration configuration) {
    assertThat(configuration).isInstanceOf(DatabaseTsBoundPersisterConfiguration.class);
    DatabaseTsBoundPersisterConfiguration databaseTsBoundPersisterConfiguration = (DatabaseTsBoundPersisterConfiguration) configuration;
    assertThat(databaseTsBoundPersisterConfiguration.keyValueServiceConfig()).isEqualTo(new InMemoryAtlasDbConfig());
}
Also used : DatabaseTsBoundPersisterConfiguration(com.palantir.timelock.config.DatabaseTsBoundPersisterConfiguration) InMemoryAtlasDbConfig(com.palantir.atlasdb.memory.InMemoryAtlasDbConfig)

Aggregations

InMemoryAtlasDbConfig (com.palantir.atlasdb.memory.InMemoryAtlasDbConfig)2 DatabaseTsBoundPersisterConfiguration (com.palantir.timelock.config.DatabaseTsBoundPersisterConfiguration)2 ImmutableDatabaseTsBoundPersisterConfiguration (com.palantir.timelock.config.ImmutableDatabaseTsBoundPersisterConfiguration)1 Test (org.junit.Test)1