use of com.hortonworks.registries.schemaregistry.CompatibilityResult in project registry by hortonworks.
the class AvroCompatibilityCheckerTest method testInvalidCompatibilities.
@Test
public void testInvalidCompatibilities() throws Exception {
SchemaCompatibility[] compatibilities = { SchemaCompatibility.BACKWARD, SchemaCompatibility.FORWARD, SchemaCompatibility.BOTH };
for (SchemaCompatibility compatibility : compatibilities) {
CompatibilityResult compatibilityResult = new AvroSchemaProvider().checkCompatibility(fetchResourceText("/avro/book-invalid-compat.avsc"), initialVersionSchema(), compatibility);
Assert.assertFalse(compatibilityResult.isCompatible());
}
}
Aggregations