@Test public void check_percentage_not_accepted_inside_id() { assertFalse(validationToTest.validate("12345%6").isValid()); }
@Override protected void validate(ValidationContext<String> context) { validateNotNull(context); validateWithoutWhitespaces(context); validateOnlyAlphabeticDigitOrAllowedParts(context, '.','-','_'); validateLength(context); }
MappingIdValidationImpl extends AbstractSimpleStringValidation implements MappingIdValidation { @Override protected void validate(ValidationContext<String> context) { validateNotNull(context); validateWithoutWhitespaces(context); validateOnlyAlphabeticDigitOrAllowedParts(context, '.','-','_'); validateLength(context); } }
MappingIdValidationImpl extends AbstractSimpleStringValidation implements MappingIdValidation { @Override protected void validate(ValidationContext<String> context) { validateNotNull(context); validateWithoutWhitespaces(context); validateOnlyAlphabeticDigitOrAllowedParts(context, '.','-','_'); validateLength(context); }  }
MappingIdValidationImpl extends AbstractSimpleStringValidation implements MappingIdValidation { @Override protected void validate(ValidationContext<String> context) { validateNotNull(context); validateWithoutWhitespaces(context); validateOnlyAlphabeticDigitOrAllowedParts(context, '.','-','_'); validateLength(context); }   }
MappingIdValidationImpl extends AbstractSimpleStringValidation implements MappingIdValidation { @Override protected void validate(ValidationContext<String> context) { validateNotNull(context); validateWithoutWhitespaces(context); validateOnlyAlphabeticDigitOrAllowedParts(context, '.','-','_'); validateLength(context); }    }