VORTASTEN rebase--2023-09-15--16-33
authorKai Moritz <kai@juplo.de>
Fri, 15 Sep 2023 12:16:23 +0000 (14:16 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 15 Sep 2023 12:16:23 +0000 (14:16 +0200)
src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java

index 0cd5edc..d9ed8eb 100644 (file)
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.test.context.TestConfiguration;
 import org.springframework.boot.test.mock.mockito.MockBean;
 import org.springframework.context.annotation.Import;
 import org.springframework.kafka.core.KafkaTemplate;
@@ -27,7 +28,6 @@ import static de.juplo.kafka.chat.backend.KafkaConfigurationIT.INFO_TOPIC;
         "chat.backend.kafka.data-channel-topic=" + DATA_TOPIC,
         "chat.backend.kafka.num-partitions=10",
         })
-@Import(KafkaTestUtils.KafkaTestConfiguration.class)
 @EmbeddedKafka(
     topics = { INFO_TOPIC, DATA_TOPIC },
     partitions = 10)
@@ -57,4 +57,11 @@ class KafkaConfigurationIT extends AbstractConfigurationWithShardingIT
   {
     KafkaTestUtils.joinConsumerTasks(consumerTaskRunner);
   }
+
+
+  @TestConfiguration
+  @Import(KafkaTestUtils.KafkaTestConfiguration.class)
+  static class KafkaConfigurationITConfiguration
+  {
+  }
 }