use of org.wildfly.camel.test.common.zookeeper.EmbeddedZookeeper in project wildfly-camel by wildfly-extras.
the class KafkaConsumerIntegrationTest method before.
@BeforeClass
public static void before() throws Exception {
embeddedZookeeper = new EmbeddedZookeeper();
List<Integer> kafkaPorts = Collections.singletonList(KAFKA_PORT);
embeddedKafkaBroker = new EmbeddedKafkaBroker(embeddedZookeeper.getConnection(), new Properties(), kafkaPorts);
embeddedZookeeper.startup(1, TimeUnit.SECONDS);
System.out.println("### Embedded Zookeeper connection: " + embeddedZookeeper.getConnection());
embeddedKafkaBroker.startup();
System.out.println("### Embedded Kafka cluster broker list: " + embeddedKafkaBroker.getBrokerList());
}
use of org.wildfly.camel.test.common.zookeeper.EmbeddedZookeeper in project wildfly-camel by wildfly-extras.
the class KafkaProducerIntegrationTest method before.
@BeforeClass
public static void before() throws Exception {
embeddedZookeeper = new EmbeddedZookeeper();
List<Integer> kafkaPorts = Collections.singletonList(KAFKA_PORT);
embeddedKafkaBroker = new EmbeddedKafkaBroker(embeddedZookeeper.getConnection(), new Properties(), kafkaPorts);
embeddedZookeeper.startup(1, TimeUnit.SECONDS);
System.out.println("### Embedded Zookeeper connection: " + embeddedZookeeper.getConnection());
embeddedKafkaBroker.startup();
System.out.println("### Embedded Kafka cluster broker list: " + embeddedKafkaBroker.getBrokerList());
}
Aggregations