Optimize imports based on new checkstyle rules
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user