AlertTemplateProcessor { public String processShortDescriptionTemplate(Incident incident) { return processTemplate("alertsShortDescription.ftl", alertingPlugin.getShortDescriptionAlertTemplate(), incident); } AlertTemplateProcessor(AlertingPlugin alertingPlugin); String processHtmlTemplate(Incident incident); String processPlainTextTemplate(Incident incident); String processShortDescriptionTemplate(Incident incident);  }
@Test public void testProcessShortDescriptionTemplate() throws Exception { assertEquals("[OK -> CRITICAL] Test Timer has 2 failing checks", alertTemplateProcessor.processShortDescriptionTemplate(createIncidentWithVersion("1", 1))); configurationSource.add("stagemonitor.alerts.template.shortDescription", "foo"); configuration.reloadDynamicConfigurationOptions(); assertEquals("foo", alertTemplateProcessor.processShortDescriptionTemplate(testIncident)); }