public void assertValidity()

in src/java/org/apache/fulcrum/intake/validator/DateRangeValidator.java [204:234]


    public void assertValidity(final String testValue, final Group group)
        throws ValidationException
    {
        if (required || StringUtils.isNotEmpty(testValue))
        {
            Date testDate = null;

            try
            {
                testDate = parse(testValue);
            }
            catch (ParseException e)
            {
                // This should not happen because we succeeded with this before,
                // but we need to catch the exception anyway
                errorMessage = getDateFormatMessage();
                throw new ValidationException(errorMessage);
            }

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