-package de.juplo.kafka.chat.backend;
+package de.juplo.kafka.chat.backend.storage;
import de.juplo.kafka.chat.backend.implementation.inmemory.InMemoryTestUtils;
import de.juplo.kafka.chat.backend.implementation.inmemory.SimpleChatHomeService;
@ContextConfiguration(classes = InMemoryTestUtils.class)
@Slf4j
-public abstract class AbstractInMemoryStorageIT extends AbstractStorageStrategyIT
+public abstract class AbstractInMemoryStorageStrategyIT extends AbstractStorageStrategyIT
{
@Autowired
InMemoryTestUtils testUtils;
-package de.juplo.kafka.chat.backend;
+package de.juplo.kafka.chat.backend.storage;
+import de.juplo.kafka.chat.backend.ChatBackendProperties;
import de.juplo.kafka.chat.backend.domain.*;
import de.juplo.kafka.chat.backend.implementation.StorageStrategy;
import de.juplo.kafka.chat.backend.implementation.inmemory.InMemoryServicesConfiguration;
-package de.juplo.kafka.chat.backend;
+package de.juplo.kafka.chat.backend.storage;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import de.juplo.kafka.chat.backend.ChatBackendProperties;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
"chat.backend.inmemory.sharding-strategy=none",
"chat.backend.inmemory.storage-strategy=files",
"chat.backend.inmemory.storage-directory=target/files" })
-@ContextConfiguration(classes = InMemoryWithFilesStorageIT.TestConfig.class)
+@ContextConfiguration(classes = InMemoryWithFilesStorageStrategyIT.TestConfig.class)
@Slf4j
-public class InMemoryWithFilesStorageIT extends AbstractInMemoryStorageIT
+public class InMemoryWithFilesStorageStrategyIT extends AbstractInMemoryStorageStrategyIT
{
@BeforeEach
void resetStorage(
-package de.juplo.kafka.chat.backend;
+package de.juplo.kafka.chat.backend.storage;
import de.juplo.kafka.chat.backend.storage.mongodb.ChatRoomRepository;
import de.juplo.kafka.chat.backend.storage.mongodb.MessageRepository;
@Testcontainers
@EnableAutoConfiguration
@Slf4j
-public class InMemoryWithMongoDbStorageIT extends AbstractInMemoryStorageIT
+public class InMemoryWithMongoDbStorageStrategyIT extends AbstractInMemoryStorageStrategyIT
{
@Container
@ServiceConnection