Optimize imports based on new checkstyle rules

This commit is contained in:
Soby Chacko
2024-10-18 15:36:31 -04:00
parent 581d7e5011
commit 2cd85c0714
102 changed files with 498 additions and 529 deletions

View File

@@ -16,8 +16,6 @@
package com.example;
import static org.awaitility.Awaitility.await;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@@ -28,6 +26,8 @@ import org.springframework.boot.test.system.OutputCaptureExtension;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.test.annotation.DirtiesContext;
import static org.awaitility.Awaitility.await;
/**
* This test is going to fail from IDE since there is no exposed {@code spring.embedded.kafka.brokers} system property.
* Use Maven to run tests which enables global embedded Kafka broker via properties provided to Surefire plugin.

View File

@@ -16,8 +16,6 @@
package com.example;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import java.util.concurrent.TimeUnit;
import org.apache.kafka.common.errors.TimeoutException;
@@ -29,6 +27,8 @@ import org.springframework.kafka.KafkaException;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.test.annotation.DirtiesContext;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
/**
* This test is going to fail from IDE since there is no exposed {@code spring.embedded.kafka.brokers} system property.
* This test demonstrates that global embedded Kafka broker config for {@code auto.create.topics.enable=false}