aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-email-notifications-plugin/src/test
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-02-08 10:41:04 +0100
committerFabrice Bellingard <bellingard@gmail.com>2012-02-08 10:41:04 +0100
commit6c02ac9db7537a9fab87bc5b9e7b3d50ec1494f4 (patch)
tree21f41911458fa468fbf800ff2d33966072a53721 /plugins/sonar-email-notifications-plugin/src/test
parent85e7e49bcfa5fb64fd499060c279cd679c799e39 (diff)
downloadsonarqube-6c02ac9db7537a9fab87bc5b9e7b3d50ec1494f4.tar.gz
sonarqube-6c02ac9db7537a9fab87bc5b9e7b3d50ec1494f4.zip
SONAR-2747 Improve email message
Diffstat (limited to 'plugins/sonar-email-notifications-plugin/src/test')
-rw-r--r--plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsEmailTemplateTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsEmailTemplateTest.java b/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsEmailTemplateTest.java
index 4fc6c220945..fdca5da0091 100644
--- a/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsEmailTemplateTest.java
+++ b/plugins/sonar-email-notifications-plugin/src/test/java/org/sonar/plugins/emailnotifications/newviolations/NewViolationsEmailTemplateTest.java
@@ -67,15 +67,14 @@ public class NewViolationsEmailTemplateTest {
.setFieldValue("projectName", "Foo")
.setFieldValue("projectKey", "org.sonar.foo:foo")
.setFieldValue("projectId", "45")
- .setFieldValue("fromDate", "2012-01-02")
- .setFieldValue("toDate", "2012-01-15");
+ .setFieldValue("fromDate", "2012-01-02");
EmailMessage message = template.format(notification);
assertThat(message.getMessageId(), is("new-violations/45"));
assertThat(message.getSubject(), is("New violations for project Foo"));
assertThat(message.getMessage(), is("" +
"Project: Foo\n" +
- "32 new violations on last analysis (introduced between 2012-01-02 and 2012-01-15)\n" +
+ "32 new violations introduced since 2012-01-02\n" +
"\n" +
"See it in Sonar: http://nemo.sonarsource.org/drilldown/measures/org.sonar.foo:foo?metric=new_violations&period=1\n"));
}