From c6a33a3c27563018d99a56fe4069f20de64e9f4c Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 14 Aug 2022 13:26:08 +0200 Subject: [PATCH] Namen der Test-Klassen korrigiert --- .../kafka/{ApplicationTest.java => ApplicationTests.java} | 6 +++--- .../de/juplo/kafka/ErrorCannotBeGeneratedCondition.java | 2 +- ...cApplicationTest.java => GenericApplicationTests.java} | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/test/java/de/juplo/kafka/{ApplicationTest.java => ApplicationTests.java} (93%) rename src/test/java/de/juplo/kafka/{GenericApplicationTest.java => GenericApplicationTests.java} (97%) diff --git a/src/test/java/de/juplo/kafka/ApplicationTest.java b/src/test/java/de/juplo/kafka/ApplicationTests.java similarity index 93% rename from src/test/java/de/juplo/kafka/ApplicationTest.java rename to src/test/java/de/juplo/kafka/ApplicationTests.java index ed93a21..51d579e 100644 --- a/src/test/java/de/juplo/kafka/ApplicationTest.java +++ b/src/test/java/de/juplo/kafka/ApplicationTests.java @@ -14,10 +14,10 @@ import java.util.Set; import java.util.function.Consumer; -@ContextConfiguration(classes = ApplicationTest.Configuration.class) -public class ApplicationTest extends GenericApplicationTest +@ContextConfiguration(classes = ApplicationTests.Configuration.class) +public class ApplicationTests extends GenericApplicationTests { - public ApplicationTest() + public ApplicationTests() { super( new RecordGenerator() diff --git a/src/test/java/de/juplo/kafka/ErrorCannotBeGeneratedCondition.java b/src/test/java/de/juplo/kafka/ErrorCannotBeGeneratedCondition.java index 6d772ce..99af3b2 100644 --- a/src/test/java/de/juplo/kafka/ErrorCannotBeGeneratedCondition.java +++ b/src/test/java/de/juplo/kafka/ErrorCannotBeGeneratedCondition.java @@ -27,7 +27,7 @@ public class ErrorCannotBeGeneratedCondition implements ExecutionCondition if (optional.isPresent()) { SkipWhenErrorCannotBeGenerated skipWhenErrorCannotBeGenerated = optional.get(); - GenericApplicationTest instance = (GenericApplicationTest)context.getTestInstance().get(); + GenericApplicationTests instance = (GenericApplicationTests)context.getTestInstance().get(); List missingRequiredErrors = new LinkedList<>(); if (skipWhenErrorCannotBeGenerated.poisonPill() && !instance.recordGenerator.canGeneratePoisionPill()) diff --git a/src/test/java/de/juplo/kafka/GenericApplicationTest.java b/src/test/java/de/juplo/kafka/GenericApplicationTests.java similarity index 97% rename from src/test/java/de/juplo/kafka/GenericApplicationTest.java rename to src/test/java/de/juplo/kafka/GenericApplicationTests.java index 8a57a96..8b9a3ff 100644 --- a/src/test/java/de/juplo/kafka/GenericApplicationTest.java +++ b/src/test/java/de/juplo/kafka/GenericApplicationTests.java @@ -26,8 +26,8 @@ import java.util.function.Consumer; import java.util.stream.Collectors; import java.util.stream.IntStream; -import static de.juplo.kafka.GenericApplicationTest.PARTITIONS; -import static de.juplo.kafka.GenericApplicationTest.TOPIC; +import static de.juplo.kafka.GenericApplicationTests.PARTITIONS; +import static de.juplo.kafka.GenericApplicationTests.TOPIC; import static org.assertj.core.api.Assertions.*; import static org.awaitility.Awaitility.*; @@ -40,7 +40,7 @@ import static org.awaitility.Awaitility.*; "consumer.commit-interval=1s" }) @EmbeddedKafka(topics = TOPIC, partitions = PARTITIONS) @Slf4j -abstract class GenericApplicationTest +abstract class GenericApplicationTests { public static final String TOPIC = "FOO"; public static final int PARTITIONS = 10; @@ -66,7 +66,7 @@ abstract class GenericApplicationTest final RecordGenerator recordGenerator; final Consumer> messageSender; - public GenericApplicationTest(RecordGenerator recordGenerator) + public GenericApplicationTests(RecordGenerator recordGenerator) { this.recordGenerator = recordGenerator; this.messageSender = (record) -> sendMessage(record); -- 2.20.1