diff options
author | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-08-12 14:07:40 +0200 |
---|---|---|
committer | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-08-12 14:07:40 +0200 |
commit | 64bcd1950806fe4a52eab1783c977c16cbaae5a8 (patch) | |
tree | c0fc2d614514fc8e99248b5015ee3d3ef9c432fc /sonar-core | |
parent | 00d39fe0650376d75d9516edaccc5ed8556e68b0 (diff) | |
download | sonarqube-64bcd1950806fe4a52eab1783c977c16cbaae5a8.tar.gz sonarqube-64bcd1950806fe4a52eab1783c977c16cbaae5a8.zip |
SONAR-4525 Use names instead of keys for action plans and users in issue changes notification emails
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/IssueNotificationsTest.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/IssueNotificationsTest.java b/sonar-core/src/test/java/org/sonar/core/issue/IssueNotificationsTest.java index 7f9e521118e..f0b464fb987 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/IssueNotificationsTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/IssueNotificationsTest.java @@ -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)"); - } } |