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