Wicket
  1. Wicket
  2. WICKET-3860

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial 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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development