Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3860

StoredResponsesMapTest Random.nextInt takes only positive integer arguments, not 0

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5-RC6
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      all

      Description

      In the test StoredResponsesMapTest the line:
      String key2 = keys.get(rnd.nextInt(keys.size() - 1));
      has a problem since the integer argument to Random.nextInt can not be 0, but the keys
      List has size 1.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              emberson Richard Emberson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: