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();
}
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());
}
Aggregations