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