BAEL-7351 running Embedded Kafka on a separate port for groupId tests
This commit is contained in:
parent
a516aca5c4
commit
e7be980d34
|
@ -17,7 +17,7 @@ import org.springframework.test.annotation.DirtiesContext;
|
||||||
@SpringBootTest(classes = Main.class)
|
@SpringBootTest(classes = Main.class)
|
||||||
@ComponentScan(basePackages = "com.baeldung.spring.kafka.groupId")
|
@ComponentScan(basePackages = "com.baeldung.spring.kafka.groupId")
|
||||||
@DirtiesContext
|
@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 {
|
public class MainLiveTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
Loading…
Reference in New Issue