private List<Issue> createRandomIssues(Key key) {
Random random = new Random();
List<Issue> ret = new ArrayList<Issue>();
for (int count = 0; count < 5; count++) {
Issue issue = new Issue();
issue.setProject(key);
issue.setId(random.nextInt(100000));
issue.setDateTime(new Date(System.currentTimeMillis()
- random.nextInt(3600000)));
issue.setSummary("random issue with long message");
issue.setStatus(IssueStatus.NEW);
issue.setSeverity(IssueSeverity.values()[random
.nextInt(IssueSeverity.values().length)]);
issue.setPriority(IssuePriority.values()[random
.nextInt(IssuePriority.values().length)]);
ret.add(issue);
}
return ret;
}