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;
|
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerDltFailOnError;
|
||||||
|
|
||||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
@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 {
|
public class KafkaDltFailOnErrorIntegrationTest {
|
||||||
private static final String TOPIC = "payments-fail-on-error-dlt";
|
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;
|
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerDltRetryOnError;
|
||||||
|
|
||||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
@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 {
|
public class KafkaDltRetryOnErrorIntegrationTest {
|
||||||
private static final String TOPIC = "payments-retry-on-error-dlt";
|
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;
|
import com.baeldung.spring.kafka.dlt.listener.PaymentListenerNoDlt;
|
||||||
|
|
||||||
@SpringBootTest(classes = KafkaDltApplication.class)
|
@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 {
|
public class KafkaNoDltIntegrationTest {
|
||||||
private static final String TOPIC = "payments-no-dlt";
|
private static final String TOPIC = "payments-no-dlt";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue