You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/07/03 13:32:21 UTC
[jira] [Resolved] (WICKET-3860) StoredResponsesMapTest
Random.nextInt takes only positive integer arguments, not 0
[ https://issues.apache.org/jira/browse/WICKET-3860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-3860.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5-RC6
Assignee: Martin Grigorov
> StoredResponsesMapTest Random.nextInt takes only positive integer arguments, not 0
> ----------------------------------------------------------------------------------
>
> Key: WICKET-3860
> URL: https://issues.apache.org/jira/browse/WICKET-3860
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC5.1
> Environment: all
> Reporter: Richard Emberson
> Assignee: Martin Grigorov
> Priority: Trivial
> Fix For: 1.5-RC6
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira