Class TestingKafka

    • Method Detail

      • createWithSchemaRegistry

        public static TestingKafka createWithSchemaRegistry()
      • start

        public void start()
      • createTopic

        public void createTopic​(String topic)
      • createTopicWithConfig

        public void createTopicWithConfig​(int partitions,
                                          int replication,
                                          String topic,
                                          boolean enableLogAppendTime)
      • sendMessages

        public <K,​V> org.apache.kafka.clients.producer.RecordMetadata sendMessages​(Stream<org.apache.kafka.clients.producer.ProducerRecord<K,​V>> recordStream)
      • sendMessages

        public <K,​V> org.apache.kafka.clients.producer.RecordMetadata sendMessages​(Stream<org.apache.kafka.clients.producer.ProducerRecord<K,​V>> recordStream,
                                                                                         Map<String,​String> extraProducerProperties)
      • getConnectString

        public String getConnectString()
      • getSchemaRegistryConnectString

        public String getSchemaRegistryConnectString()
      • getNetwork

        public org.testcontainers.containers.Network getNetwork()