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.*;
assertThat(resultB2.isCompletedExceptionally()).isFalse();
assertThatThrownBy(() -> instanceA.commit()).isInstanceOf(InvalidProducerEpochException.class);
- instanceB.commit();
+ assertThatCode(() -> instanceB.commit()).doesNotThrowAnyException();
}
}
+รข
\ No newline at end of file