test: Simplified the integration-tests for `StorageStrategy`
[demos/kafka/chat] / src / test / java / de / juplo / kafka / chat / backend / AbstractInMemoryStorageIT.java
1 package de.juplo.kafka.chat.backend;
2
3 import de.juplo.kafka.chat.backend.domain.ChatHomeService;
4 import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
5 import de.juplo.kafka.chat.backend.implementation.inmemory.InMemoryServicesConfiguration;
6 import de.juplo.kafka.chat.backend.implementation.inmemory.InMemoryTestUtils;
7 import lombok.extern.slf4j.Slf4j;
8 import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.test.context.ContextConfiguration;
10
11 import java.time.Clock;
12
13
14 @ContextConfiguration(classes = InMemoryTestUtils.class)
15 @Slf4j
16 public abstract class AbstractInMemoryStorageIT extends AbstractStorageStrategyIT
17 {
18   @Autowired
19   InMemoryTestUtils testUtils;
20
21   @Override
22   ChatHomeService getChatHome()
23   {
24     return testUtils.createNoneShardingChatHomeService();
25   }
26 }