commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert McGuigan (JIRA)" <>
Subject [jira] [Created] (VALIDATOR-418) UrlValidatorTest: testIsValid() does not run all tests
Date Mon, 13 Feb 2017 23:38:41 GMT
Robert McGuigan created VALIDATOR-418:

             Summary: UrlValidatorTest: testIsValid() does not run all tests
                 Key: VALIDATOR-418
             Project: Commons Validator
          Issue Type: Bug
            Reporter: Robert McGuigan
            Priority: Minor

The method testIsValid() does not iterate through all possible combinations of scheme, authority,
etc.  Namely, the last element in testUrlScheme is skipped.  This is due to a bug in incrementTestPartsIndex,
which returns false (indicating the maximum set of indices has been reached) prematurely.

Incidentally, the last test scheme currently present is the empty scheme "".  This test case
has been removed in the provided patch because the url string parser appears to assume that
the scheme is nonempty.  (e.g. if the scheme is empty, the scheme field will often be populated
with the authority data).

This message was sent by Atlassian JIRA

View raw message