public static void startUp() throws Exception { LOCAL_SCHEMA_REGISTRY_SERVER = new LocalSchemaRegistryServer(SchemaLifecycleApp.class.getClassLoader().getResource("registry-lifecycle-example.yaml").getPath()); LOCAL_SCHEMA_REGISTRY_SERVER.start(); }
public void startTestServer() throws Exception { try { localSchemaRegistryServer.start(); } catch (Exception e) { localSchemaRegistryServer.stop(); throw e; } }
@Before public void setup() throws Exception { String configPath = new File(Resources.getResource("schema-registry-test.yaml").toURI()).getAbsolutePath(); localSchemaRegistryServer = new LocalSchemaRegistryServer(configPath); localSchemaRegistryServer.start(); String rootUrl = String.format("http://localhost:%d/api/v1/confluent", localSchemaRegistryServer.getLocalPort()); rootTarget = createRootTarget(rootUrl); }
LocalSchemaRegistryServer localSchemaRegistryServer = new LocalSchemaRegistryServer(configPath); try { localSchemaRegistryServer.start();
LocalSchemaRegistryServer localSchemaRegistryServer = new LocalSchemaRegistryServer(configPath); try { localSchemaRegistryServer.start();