diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-12-14 15:44:32 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-12-14 15:44:32 +0100 |
commit | 32e0abb294c2fbfadb7789f575b9d8e0d098d300 (patch) | |
tree | 4631e667d0e94795420c5bb05750e20675dfb9c5 /it | |
parent | d32824d330ea631ce90a1d4de94836569ab898f9 (diff) | |
download | sonarqube-32e0abb294c2fbfadb7789f575b9d8e0d098d300.tar.gz sonarqube-32e0abb294c2fbfadb7789f575b9d8e0d098d300.zip |
Fix IssueNotificationsTest
Fail because the analysis date is hardcoded to 2012-12-15,
so 5 years ago. Issues are created and purged in a row !
Signed-off-by: Simon Brandhof <simon.brandhof@sonarsource.com>
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java b/it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java index efdd3c28bf6..6df5027a567 100644 --- a/it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java +++ b/it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java @@ -113,7 +113,7 @@ public class IssueNotificationsTest extends AbstractIssueTest { @Test public void notifications_for_new_issues_and_issue_changes() throws Exception { - runProjectAnalysis(ORCHESTRATOR, "shared/xoo-sample", "sonar.projectDate", "2011-12-15"); + runProjectAnalysis(ORCHESTRATOR, "shared/xoo-sample", "sonar.projectDate", "2015-12-15"); // change assignee Issues issues = issueClient.find(IssueQuery.create().componentRoots(PROJECT_KEY)); @@ -132,7 +132,7 @@ public class IssueNotificationsTest extends AbstractIssueTest { assertThat((String) message.getContent()).contains("Severity"); assertThat((String) message.getContent()).contains("One Issue Per Line (xoo): 17"); assertThat((String) message.getContent()).contains( - "See it in SonarQube: http://localhost:9000/component_issues?id=sample#createdAt=2011-12-15T00%3A00%3A00%2B"); + "See it in SonarQube: http://localhost:9000/component_issues?id=sample#createdAt=2015-12-15T00%3A00%3A00%2B"); assertThat(emails.hasNext()).isTrue(); message = emails.next().getMimeMessage(); @@ -165,7 +165,7 @@ public class IssueNotificationsTest extends AbstractIssueTest { */ @Test public void notifications_for_bulk_change_ws() throws Exception { - runProjectAnalysis(ORCHESTRATOR, "shared/xoo-sample", "sonar.projectDate", "2011-12-15"); + runProjectAnalysis(ORCHESTRATOR, "shared/xoo-sample", "sonar.projectDate", "2015-12-15"); Issues issues = issueClient.find(IssueQuery.create().componentRoots(PROJECT_KEY)); Issue issue = issues.list().get(0); |