BAEL-7199: Use different port for embedded Kafka
This commit is contained in:
parent
c2e413d157
commit
6d7c9dc79e
|
@ -24,7 +24,7 @@ import org.springframework.kafka.test.utils.ContainerTestUtils;
|
|||
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerDltFailOnError;
|
||||
|
||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9099", "port=9099" })
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9096", "port=9096" })
|
||||
public class KafkaDltFailOnErrorIntegrationTest {
|
||||
private static final String TOPIC = "payments-fail-on-error-dlt";
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.springframework.kafka.test.utils.ContainerTestUtils;
|
|||
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerDltRetryOnError;
|
||||
|
||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9099", "port=9099" })
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9096", "port=9096" })
|
||||
public class KafkaDltRetryOnErrorIntegrationTest {
|
||||
private static final String TOPIC = "payments-retry-on-error-dlt";
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.springframework.kafka.test.utils.ContainerTestUtils;
|
|||
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerNoDlt;
|
||||
|
||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9099", "port=9099" })
|
||||
@EmbeddedKafka(partitions = 1, brokerProperties = { "listeners=PLAINTEXT://localhost:9096", "port=9096" })
|
||||
public class KafkaNoDltIntegrationTest {
|
||||
private static final String TOPIC = "payments-no-dlt";
|
||||
|
||||
|
|
Loading…
Reference in New Issue