Search in sources :

Example 1 with KafkaTestSupport

use of com.hazelcast.jet.kafka.impl.KafkaTestSupport in project hazelcast by hazelcast.

the class SqlAvroTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    initialize(1, null);
    sqlService = instance().getSql();
    kafkaTestSupport = new KafkaTestSupport();
    kafkaTestSupport.createKafkaCluster();
    Properties properties = new Properties();
    properties.put("listeners", "http://0.0.0.0:0");
    properties.put("kafkastore.connection.url", kafkaTestSupport.getZookeeperConnectionString());
    SchemaRegistryConfig config = new SchemaRegistryConfig(properties);
    SchemaRegistryRestApplication schemaRegistryApplication = new SchemaRegistryRestApplication(config);
    schemaRegistry = schemaRegistryApplication.createServer();
    schemaRegistry.start();
}
Also used : KafkaTestSupport(com.hazelcast.jet.kafka.impl.KafkaTestSupport) SchemaRegistryRestApplication(io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication) SchemaRegistryConfig(io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig) Properties(java.util.Properties) BeforeClass(org.junit.BeforeClass)

Example 2 with KafkaTestSupport

use of com.hazelcast.jet.kafka.impl.KafkaTestSupport in project hazelcast by hazelcast.

the class SqlKafkaAggregateTest method setUpClass.

@BeforeClass
public static void setUpClass() throws IOException {
    initialize(1, null);
    sqlService = instance().getSql();
    kafkaTestSupport = new KafkaTestSupport();
    kafkaTestSupport.createKafkaCluster();
}
Also used : KafkaTestSupport(com.hazelcast.jet.kafka.impl.KafkaTestSupport) BeforeClass(org.junit.BeforeClass)

Example 3 with KafkaTestSupport

use of com.hazelcast.jet.kafka.impl.KafkaTestSupport in project hazelcast by hazelcast.

the class SqlPojoTest method setUpClass.

@BeforeClass
public static void setUpClass() throws IOException {
    initialize(1, null);
    sqlService = instance().getSql();
    kafkaTestSupport = new KafkaTestSupport();
    kafkaTestSupport.createKafkaCluster();
}
Also used : KafkaTestSupport(com.hazelcast.jet.kafka.impl.KafkaTestSupport) BeforeClass(org.junit.BeforeClass)

Example 4 with KafkaTestSupport

use of com.hazelcast.jet.kafka.impl.KafkaTestSupport in project hazelcast by hazelcast.

the class SqlJsonTest method setUpClass.

@BeforeClass
public static void setUpClass() throws IOException {
    initialize(1, null);
    sqlService = instance().getSql();
    kafkaTestSupport = new KafkaTestSupport();
    kafkaTestSupport.createKafkaCluster();
}
Also used : KafkaTestSupport(com.hazelcast.jet.kafka.impl.KafkaTestSupport) BeforeClass(org.junit.BeforeClass)

Example 5 with KafkaTestSupport

use of com.hazelcast.jet.kafka.impl.KafkaTestSupport in project hazelcast by hazelcast.

the class SqlPlanCacheTest method setUpClass.

@BeforeClass
public static void setUpClass() throws IOException {
    initialize(1, null);
    sqlService = instance().getSql();
    kafkaTestSupport = new KafkaTestSupport();
    kafkaTestSupport.createKafkaCluster();
}
Also used : KafkaTestSupport(com.hazelcast.jet.kafka.impl.KafkaTestSupport) BeforeClass(org.junit.BeforeClass)

Aggregations

KafkaTestSupport (com.hazelcast.jet.kafka.impl.KafkaTestSupport)6 BeforeClass (org.junit.BeforeClass)6 SchemaRegistryConfig (io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig)1 SchemaRegistryRestApplication (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication)1 Properties (java.util.Properties)1