From 61b5faf344d2acec2e4d8d438d1a2a2cd0c49299 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 23 Feb 2024 12:38:34 +0100 Subject: [PATCH] TMP --- .../storage/nostorage/NoStorageStorageConfiguration.java | 3 +++ .../mongodb => }/MongoDbStorageNotActiveConfiguration.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) rename src/test/java/de/juplo/kafka/chat/backend/{storage/mongodb => }/MongoDbStorageNotActiveConfiguration.java (75%) diff --git a/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageConfiguration.java index a893e9d7..d497d957 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/storage/nostorage/NoStorageStorageConfiguration.java @@ -1,6 +1,7 @@ package de.juplo.kafka.chat.backend.storage.nostorage; import de.juplo.kafka.chat.backend.implementation.StorageStrategy; +import lombok.extern.slf4j.Slf4j; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -13,6 +14,7 @@ import org.springframework.context.annotation.Lazy; havingValue = "none", matchIfMissing = true) @Configuration +@Slf4j public class NoStorageStorageConfiguration { @Bean @@ -25,6 +27,7 @@ public class NoStorageStorageConfiguration @Lazy(false) public String foo() { + log.info("FOO (woanders)!"); return "FOO"; } } diff --git a/src/test/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageNotActiveConfiguration.java b/src/test/java/de/juplo/kafka/chat/backend/MongoDbStorageNotActiveConfiguration.java similarity index 75% rename from src/test/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageNotActiveConfiguration.java rename to src/test/java/de/juplo/kafka/chat/backend/MongoDbStorageNotActiveConfiguration.java index fae8cc96..47d4c7d8 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/storage/mongodb/MongoDbStorageNotActiveConfiguration.java +++ b/src/test/java/de/juplo/kafka/chat/backend/MongoDbStorageNotActiveConfiguration.java @@ -1,17 +1,20 @@ -package de.juplo.kafka.chat.backend.storage.mongodb; +package de.juplo.kafka.chat.backend; +import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Lazy; @Configuration +@Slf4j public class MongoDbStorageNotActiveConfiguration { @Bean @Lazy(false) public String foo() { + log.info("FOO!"); return "FOO"; } } -- 2.20.1