Search in sources :

Example 1 with StripNonNumeric

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

the class TestStandardizationTransform method testStripNonNumeric.

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

Aggregations

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