Search in sources :

Example 1 with MaskLeavingLastFourDigitStandardizer

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

the class TestStandardizationTransform method testMaskLeavingLastFourDigitStandardizer.

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

Aggregations

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