Class KafkaTestServer

java.lang.Object
com.salesforce.kafka.test.KafkaTestServer
All Implemented Interfaces:
KafkaCluster, KafkaProvider, AutoCloseable

public class KafkaTestServer
extends Object
implements KafkaCluster, KafkaProvider, AutoCloseable
This will spin up a ZooKeeper and Kafka server for use in integration tests. Simply create an instance of KafkaTestServer and call start() and you can publish to Kafka topics in an integration test. Be sure to call shutdown() when the test is complete or use the AutoCloseable interface.