public void assertValidity()

in src/java/org/apache/fulcrum/intake/validator/IntegerRangeValidator.java [205:233]


    public void assertValidity(final String testValue, final Group group, final Locale locale)
        throws ValidationException
    {
        if (required || StringUtils.isNotEmpty(testValue))
        {
            Integer testInt;

			try
			{
				testInt = parseNumber(testValue, locale);
			}
			catch (NumberFormatException e)
			{
				errorMessage = invalidNumberMessage;
				throw new ValidationException(invalidNumberMessage);
			}

            try
            {
                FieldReference.checkReferences(fieldReferences, compareCallback,
                        testInt, group);
            }
            catch (ValidationException e)
            {
                errorMessage = e.getMessage();
                throw e;
            }
        }
    }