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

        Richard Emberson created issue -
        Martin Grigorov made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 1.5-RC6 [ 12316657 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        13h 35m 1 Martin Grigorov 03/Jul/11 11:30

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development