Search in sources :

Example 1 with SchemaTranslationPolicies

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));
}
Also used : SchemaTranslationPolicies(io.confluent.ksql.serde.SchemaTranslationPolicies) Test(org.junit.Test)

Aggregations

SchemaTranslationPolicies (io.confluent.ksql.serde.SchemaTranslationPolicies)1 Test (org.junit.Test)1