aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-08-12 14:07:40 +0200
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>2013-08-12 14:07:40 +0200
commit64bcd1950806fe4a52eab1783c977c16cbaae5a8 (patch)
treec0fc2d614514fc8e99248b5015ee3d3ef9c432fc /sonar-core
parent00d39fe0650376d75d9516edaccc5ed8556e68b0 (diff)
downloadsonarqube-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.java22
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)");
- }
}