From: Stas Vilchik Date: Tue, 9 May 2017 12:01:24 +0000 (+0200) Subject: fix IssueNotificationsTest X-Git-Tag: 6.4-RC1~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=831e339c5552313baeff21c0baadde8734b2c963;p=sonarqube.git fix IssueNotificationsTest --- 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 ee865958c23..a77a85b7bd3 100644 --- a/it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java +++ b/it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java @@ -163,7 +163,8 @@ public class IssueNotificationsTest extends AbstractIssueTest { assertThat(message.getHeader("To", null)).isEqualTo(""); assertThat((String) message.getContent()).contains("sample/Sample.xoo"); assertThat((String) message.getContent()).contains("Assignee changed to Tester"); - assertThat((String) message.getContent()).contains("See it in SonarQube: http://localhost:9000/issues?issues=" + issue.key()); + assertThat((String) message.getContent()).contains( + "See it in SonarQube: http://localhost:9000/project/issues?id=sample&issues=" + issue.key() + "&open=" + issue.key()); assertThat(emails.hasNext()).isFalse(); } @@ -218,7 +219,7 @@ public class IssueNotificationsTest extends AbstractIssueTest { assertThat((String) message.getContent()).contains("sample/Sample.xoo"); assertThat((String) message.getContent()).contains("Severity: BLOCKER (was MINOR)"); assertThat((String) message.getContent()).contains( - "See it in SonarQube: http://localhost:9000/issues?issues=" + issue.key()); + "See it in SonarQube: http://localhost:9000/project/issues?id=sample&issues=" + issue.key() + "&open=" + issue.key()); assertThat(emails.hasNext()).isFalse(); }