Search in sources :

Example 1 with RemoveControlCharsStandardizer

use of com.thinkbiganalytics.policy.standardization.RemoveControlCharsStandardizer in project kylo by Teradata.

the class TestStandardizationTransform method testRemoveControlCharsStandardizer.

@Test
public void testRemoveControlCharsStandardizer() throws IOException {
    RemoveControlCharsStandardizer standardizer = RemoveControlCharsStandardizer.instance();
    FieldStandardizationRule uiModel = StandardizationAnnotationTransformer.instance().toUIModel(standardizer);
    RemoveControlCharsStandardizer convertedPolicy = fromUI(uiModel, RemoveControlCharsStandardizer.class);
    Assert.assertEquals(standardizer, convertedPolicy);
}
Also used : RemoveControlCharsStandardizer(com.thinkbiganalytics.policy.standardization.RemoveControlCharsStandardizer) FieldStandardizationRule(com.thinkbiganalytics.policy.rest.model.FieldStandardizationRule) Test(org.junit.Test)

Aggregations

FieldStandardizationRule (com.thinkbiganalytics.policy.rest.model.FieldStandardizationRule)1 RemoveControlCharsStandardizer (com.thinkbiganalytics.policy.standardization.RemoveControlCharsStandardizer)1 Test (org.junit.Test)1