WIP
authorKai Moritz <kai@juplo.de>
Wed, 24 Jan 2024 22:30:57 +0000 (23:30 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 24 Jan 2024 22:30:57 +0000 (23:30 +0100)
src/test/java/de/juplo/kafka/ApplicationTests.java

index c861034..567389d 100644 (file)
@@ -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