use of io.confluent.ksql.serde.SchemaTranslationPolicies in project ksql by confluentinc.
the class SchemaTranslationPoliciesTest method shouldReturnCorrectEnabled.
@Test
public void shouldReturnCorrectEnabled() {
// Given:
SchemaTranslationPolicies lowercasePolicies = SchemaTranslationPolicies.of(UPPERCASE_FIELD_NAME);
// When: Then:
assertTrue(lowercasePolicies.enabled(UPPERCASE_FIELD_NAME));
assertFalse(lowercasePolicies.enabled(ORIGINAL_FIELD_NAME));
}
Aggregations