use of com.hortonworks.registries.schemaregistry.HAServerNotificationManager in project registry by hortonworks.
the class AvroSchemaRegistryTest method setup.
@Before
public void setup() throws IOException {
schema1 = getSchema("/device.avsc");
schema2 = getSchema("/device-compat.avsc");
schemaName = "org.hwx.schemas.test-schema." + UUID.randomUUID();
StorageManager storageManager = new InMemoryStorageManager();
Collection<Map<String, Object>> schemaProvidersConfig = Collections.singleton(Collections.singletonMap("providerClass", AvroSchemaProvider.class.getName()));
schemaRegistry = new DefaultSchemaRegistry(storageManager, null, schemaProvidersConfig, new HAServerNotificationManager());
schemaRegistry.init(Collections.<String, Object>emptyMap());
}
Aggregations