issue.setRuleKey(RuleKey.of("squid", "AvoidCycles"));
issue.setSeverity(Severity.INFO);
issue.setResolution(Issue.RESOLUTION_FALSE_POSITIVE);
- issue.setCreationDate(DateUtils.parseDate("2013-01-30"));
+ issue.setCreationDate(DateUtils.parseDateTime("2013-01-30T00:00:00+0000"));
issue.setNew(true);
when(ruleI18nManager.getName("squid", "AvoidCycles", Locale.getDefault())).thenReturn("Avoid Cycles");
doReturn(Arrays.asList(issue)).when(deprecatedJsonReport).getIssues(resource);
issue.setSeverity(Severity.INFO);
issue.setResolution(null);
issue.setNew(false);
- issue.setCreationDate(DateUtils.parseDate("2013-01-30"));
+ issue.setCreationDate(DateUtils.parseDateTime("2013-01-30T00:00:00+0000"));
when(ruleI18nManager.getName("squid", "AvoidCycles", Locale.getDefault())).thenReturn("Avoid Cycles");
doReturn(Arrays.asList(issue)).when(deprecatedJsonReport).getIssues(resource);
.setEffortToFix(3.14)
.setReporter("julien")
.setAssignee("simon")
- .setCreationDate(DateUtils.parseDate("2013-04-24"))
- .setUpdateDate(DateUtils.parseDate("2013-04-25"))
+ .setCreationDate(DateUtils.parseDateTime("2013-04-24T00:00:00+0000"))
+ .setUpdateDate(DateUtils.parseDateTime("2013-04-25T00:00:00+0000"))
.setNew(false);
when(ruleI18nManager.getName("squid", "AvoidCycles", Locale.getDefault())).thenReturn("Avoid Cycles");
when(jsonReport.getIssues()).thenReturn(Lists.<DefaultIssue> newArrayList(issue));
.setRuleKey(RuleKey.of("squid", "AvoidCycles"))
.setStatus(Issue.STATUS_CLOSED)
.setResolution(Issue.RESOLUTION_FIXED)
- .setCreationDate(DateUtils.parseDate("2013-04-24"))
- .setUpdateDate(DateUtils.parseDate("2013-04-25"))
- .setCloseDate(DateUtils.parseDate("2013-04-26"))
+ .setCreationDate(DateUtils.parseDateTime("2013-04-24T00:00:00+0000"))
+ .setUpdateDate(DateUtils.parseDateTime("2013-04-25T00:00:00+0000"))
+ .setCloseDate(DateUtils.parseDateTime("2013-04-26T00:00:00+0000"))
.setNew(false);
when(ruleI18nManager.getName("squid", "AvoidCycles", Locale.getDefault())).thenReturn("Avoid Cycles");
when(jsonReport.getIssues()).thenReturn(Lists.<DefaultIssue> newArrayList(issue));