Search in sources :

Example 1 with SchemaRegistryRestApplication

use of io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication 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)

Aggregations

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