use of io.smallrye.reactive.messaging.kafka.companion.test.KafkaBrokerExtension.KafkaBootstrapServers in project smallrye-reactive-messaging by smallrye.
the class KafkaClientReactiveStreamsPublisherTest method init.
@BeforeAll
public static void init(@KafkaBootstrapServers String bootstrapServers) {
companion = new KafkaCompanion(bootstrapServers);
String newTopic = "tck-" + UUID.randomUUID();
companion.topics().createAndWait(newTopic, partitions);
topic = newTopic;
vertx = Vertx.vertx();
companion.produceStrings().usingGenerator(i -> new ProducerRecord<>(topic, Integer.toString(i % partitions), Integer.toString(i)), MESSAGE_COUNT).awaitCompletion(Duration.ofSeconds(30));
}
Aggregations