From ed3aa1d7cc35eb3a4c75fe527445ffe0901d62b8 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 24 Jul 2022 20:37:17 +0200 Subject: [PATCH] WIP --- src/test/java/de/juplo/kafka/ApplicationTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/de/juplo/kafka/ApplicationTests.java b/src/test/java/de/juplo/kafka/ApplicationTests.java index 9d5fb52..2247d9e 100644 --- a/src/test/java/de/juplo/kafka/ApplicationTests.java +++ b/src/test/java/de/juplo/kafka/ApplicationTests.java @@ -73,7 +73,7 @@ class ApplicationTests PartitionStatisticsRepository repository; Consumer> testHandler; - EndlessConsumer endlessConsumer; + Wordcount wordcount; Map oldOffsets; Map newOffsets; Set> receivedRecords; @@ -99,7 +99,7 @@ class ApplicationTests }); assertThatExceptionOfType(IllegalStateException.class) - .isThrownBy(() -> endlessConsumer.exitStatus()) + .isThrownBy(() -> wordcount.exitStatus()) .describedAs("Consumer should still be running"); } @@ -224,7 +224,7 @@ class ApplicationTests testHandler.accept(record); }; - endlessConsumer = + wordcount = new EndlessConsumer<>( executor, repository, @@ -235,7 +235,7 @@ class ApplicationTests kafkaConsumer, captureOffsetAndExecuteTestHandler); - endlessConsumer.start(); + wordcount.start(); } @AfterEach @@ -243,7 +243,7 @@ class ApplicationTests { try { - endlessConsumer.stop(); + wordcount.stop(); } catch (Exception e) { -- 2.20.1