BAEL-7351 test configuration

This commit is contained in:
s9m33r 2024-02-25 15:27:47 +05:30
parent 45a8c4d66f
commit 7ade810d76
2 changed files with 3 additions and 0 deletions

View File

@ -13,8 +13,10 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.kafka.test.context.EmbeddedKafka;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ActiveProfiles;
@SpringBootTest(classes = Main.class)
@ActiveProfiles("groupId")
@ComponentScan(basePackages = "com.baeldung.spring.kafka.groupId")
@DirtiesContext
@EmbeddedKafka(partitions = 4, topics = { "${kafka.topic.name:test-topic}" }, brokerProperties = { "listeners=PLAINTEXT://localhost:8000", "port=8000" })

View File

@ -0,0 +1 @@
spring.kafka.bootstrap-servers=localhost:8000