dataChannelTaskExecutor.executeConsumerTask();
}
- public void joinChannel() throws InterruptedException
+ public void joinChannels() throws InterruptedException
{
joinChannel(dataChannelTaskExecutor);
joinChannel(infoChannelTaskExecutor);
import de.juplo.kafka.chat.backend.domain.ChatHomeServiceWithShardsTest;
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
{
- KafkaTestUtils.joinConsumerTasks(channelTaskRunner);
+ dataChannelConsumer.wakeup();
+ infoChannelConsumer.wakeup();
+ channelTaskRunner.joinChannels();
}
}