]> source.dussan.org Git - sonarqube.git/commitdiff
fix IssueNotificationsTest
authorStas Vilchik <vilchiks@gmail.com>
Tue, 9 May 2017 12:01:24 +0000 (14:01 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 9 May 2017 12:01:24 +0000 (14:01 +0200)
it/it-tests/src/test/java/it/issue/IssueNotificationsTest.java

index ee865958c232982fa4131e02438b2bb1c92b50d7..a77a85b7bd34fa7759e9796165ec4ff7c4ee89d4 100644 (file)
@@ -163,7 +163,8 @@ public class IssueNotificationsTest extends AbstractIssueTest {
     assertThat(message.getHeader("To", null)).isEqualTo("<tester@example.org>");
     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();
   }