use of com.thinkbiganalytics.policy.validation.USZipCodeValidator in project kylo by Teradata.
the class TestValidationTransformation method testUSZipCodeValidator.
@Test
public void testUSZipCodeValidator() {
USZipCodeValidator validator = USZipCodeValidator.instance();
FieldValidationRule uiModel = ValidatorAnnotationTransformer.instance().toUIModel(validator);
USZipCodeValidator convertedValidator = fromUI(uiModel, USZipCodeValidator.class);
Assert.assertEquals(validator, convertedValidator);
}
Aggregations