]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4525 Use names instead of keys for action plans and users in issue changes...
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Mon, 12 Aug 2013 12:07:40 +0000 (14:07 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Mon, 12 Aug 2013 12:07:40 +0000 (14:07 +0200)
sonar-core/src/test/java/org/sonar/core/issue/IssueNotificationsTest.java

index 7f9e521118e6253fb1d686b01c5b75517bc3f229..f0b464fb987495b11a05bec5855f63f4da476e71 100644 (file)
@@ -129,26 +129,4 @@ public class IssueNotificationsTest {
     assertThat(notification).isNull();
     Mockito.verifyZeroInteractions(manager);
   }
-
-  @Test
-  public void should_store_changelog_in_notification() throws Exception {
-    IssueChangeContext context = IssueChangeContext.createScan(new Date());
-
-    DefaultIssue issue = new DefaultIssue()
-      .setMessage("the message")
-      .setKey("ABCDE")
-      .setAssignee("freddy")
-      .setFieldChange(context, "resolution", null, "FIXED")
-      .setFieldChange(context, "status", "OPEN", "RESOLVED")
-      .setSendNotifications(true)
-      .setComponentKey("struts:Action")
-      .setProjectKey("struts");
-    DefaultIssueQueryResult queryResult = new DefaultIssueQueryResult(Arrays.<Issue>asList(issue));
-    queryResult.addProjects(Arrays.<Component>asList(new Project("struts")));
-
-    Notification notification = issueNotifications.sendChanges(issue, context, queryResult);
-
-    assertThat(notification.getFieldValue("changeLog")).contains("Resolution: FIXED");
-    assertThat(notification.getFieldValue("changeLog")).contains("Status: RESOLVED (was OPEN)");
-  }
 }