aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-email-notifications-plugin/src/test
diff options
context:
space:
mode:
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"));
}