1 package de.juplo.kafka.chat.backend.implementation.inmemory;
3 import de.juplo.kafka.chat.backend.domain.ChatHomeServiceWithShardsTest;
4 import org.springframework.test.context.TestPropertySource;
6 import static de.juplo.kafka.chat.backend.domain.ChatHomeServiceWithShardsTest.NUM_SHARDS;
7 import static de.juplo.kafka.chat.backend.domain.ChatHomeServiceWithShardsTest.OWNED_SHARD;
10 @TestPropertySource(properties = {
11 "chat.backend.inmemory.sharding-strategy=kafkalike",
12 "chat.backend.inmemory.num-shards=" + NUM_SHARDS,
13 "chat.backend.inmemory.owned-shards=" + OWNED_SHARD,
14 "chat.backend.inmemory.storage-strategy=files",
15 "chat.backend.inmemory.storage-directory=target/test-classes/data/files" })
16 public class ShardedChatHomeServiceTest extends ChatHomeServiceWithShardsTest