From: Kai Moritz Date: Wed, 24 Jan 2024 22:30:57 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4f51e5829c9e68a4d4802d5539457a3859b62ba8;p=demos%2Fkafka%2Ftraining WIP --- diff --git a/src/test/java/de/juplo/kafka/ApplicationTests.java b/src/test/java/de/juplo/kafka/ApplicationTests.java index c861034..567389d 100644 --- a/src/test/java/de/juplo/kafka/ApplicationTests.java +++ b/src/test/java/de/juplo/kafka/ApplicationTests.java @@ -13,8 +13,7 @@ import java.util.concurrent.CompletableFuture; import static de.juplo.kafka.ApplicationTests.PARTITIONS; import static de.juplo.kafka.ApplicationTests.TOPIC; -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.assertj.core.api.Assertions.*; import static org.awaitility.Awaitility.*; @@ -74,6 +73,7 @@ public class ApplicationTests assertThat(resultB2.isCompletedExceptionally()).isFalse(); assertThatThrownBy(() -> instanceA.commit()).isInstanceOf(InvalidProducerEpochException.class); - instanceB.commit(); + assertThatCode(() -> instanceB.commit()).doesNotThrowAnyException(); } } +â \ No newline at end of file