import de.juplo.kafka.chat.backend.implementation.kafka.*;
import lombok.extern.slf4j.Slf4j;
+import org.apache.kafka.clients.consumer.Consumer;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.springframework.beans.factory.annotation.Autowired;
@AfterAll
static void joinConsumerTasks(
+ @Autowired Consumer dataChannelConsumer,
+ @Autowired Consumer infoChannelConsumer,
@Autowired ChannelTaskRunner channelTaskRunner)
throws InterruptedException
{
+ dataChannelConsumer.wakeup();
+ infoChannelConsumer.wakeup();
channelTaskRunner.joinChannels();
}