aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-07-30 17:56:43 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-07-30 17:57:38 +0200
commitef9ec75e79af80ce5d7de774ab4c7d29f6f82e72 (patch)
treed5a4324d5b4c576c88c75648f7a55e293710d190
parent6094e5192d903be2c14364ce06b9d6d83cd4c70a (diff)
downloadsonarqube-ef9ec75e79af80ce5d7de774ab4c7d29f6f82e72.tar.gz
sonarqube-ef9ec75e79af80ce5d7de774ab4c7d29f6f82e72.zip
SONAR-4480 Improve email notification title of New Issues
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplate.java2
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplateTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplate.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplate.java
index d479c508d1f..d8f96c2fb8d 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplate.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplate.java
@@ -57,7 +57,7 @@ public class NewIssuesEmailTemplate extends EmailTemplate {
EmailMessage message = new EmailMessage()
.setMessageId("new-issues/" + notification.getFieldValue("projectKey"))
- .setSubject("Project " + projectName + ", new issues")
+ .setSubject(projectName + ": new issues")
.setMessage(sb.toString());
return message;
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplateTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplateTest.java
index eb09ae9c7d9..aad5c762186 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplateTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplateTest.java
@@ -68,7 +68,7 @@ public class NewIssuesEmailTemplateTest {
EmailMessage message = template.format(notification);
assertThat(message.getMessageId()).isEqualTo("new-issues/org.apache:struts");
- assertThat(message.getSubject()).isEqualTo("Project Struts, new issues");
+ assertThat(message.getSubject()).isEqualTo("Struts: new issues");
assertThat(message.getMessage()).isEqualTo("" +
"Project: Struts\n" +
"32 new issues\n" +