Search in sources :

Example 1 with KeyValueOperations

use of org.springframework.data.keyvalue.core.KeyValueOperations in project spring-data-keyvalue by spring-projects.

the class AbstractRepositoryUnitTests method setup.

@BeforeEach
void setup() {
    KeyValueOperations operations = new KeyValueTemplate(new MapKeyValueAdapter());
    KeyValueRepositoryFactory keyValueRepositoryFactory = createKeyValueRepositoryFactory(operations);
    this.repository = getRepository(keyValueRepositoryFactory);
}
Also used : KeyValueOperations(org.springframework.data.keyvalue.core.KeyValueOperations) KeyValueRepositoryFactory(org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory) KeyValueTemplate(org.springframework.data.keyvalue.core.KeyValueTemplate) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 KeyValueOperations (org.springframework.data.keyvalue.core.KeyValueOperations)1 KeyValueTemplate (org.springframework.data.keyvalue.core.KeyValueTemplate)1 KeyValueRepositoryFactory (org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactory)1