BAEL-7351 running Embedded Kafka on a separate port for groupId tests

This commit is contained in:
s9m33r 2024-02-02 01:23:09 +05:30
parent a516aca5c4
commit e7be980d34
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import org.springframework.test.annotation.DirtiesContext;
@SpringBootTest(classes = Main.class)
@ComponentScan(basePackages = "com.baeldung.spring.kafka.groupId")
@DirtiesContext
@EmbeddedKafka(partitions = 4, topics = { "${kafka.topic.name:test-topic}" }, brokerProperties = { "listeners=PLAINTEXT://localhost:9092", "port=9092" })
@EmbeddedKafka(partitions = 4, topics = { "${kafka.topic.name:test-topic}" }, brokerProperties = { "listeners=PLAINTEXT://localhost:8000", "port=8000" })
public class MainLiveTest {
@Autowired