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();
}
Aggregations