@Test public void check_80_chars_max_for_id() { assertTrue(validationToTest.validate(CONST_80_CHARS).isValid()); assertFalse(validationToTest.validate(CONST_80_CHARS + "1").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); }    }