((InternalI18NText) subject).setText(emailHeader.getSubject());;
String subject = (String) TemplateRuntime.eval(header.getSubject(), vars); String body = (String) TemplateRuntime.eval(header.getBody(), vars);
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody());
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertTrue((header.getBody().indexOf("http://localhost:8080/taskserver-url") != -1));
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody()); header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody());
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody()); assertEquals("mike", header.getFrom());
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody());
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertTrue((header.getBody().indexOf("http://localhost:8080/taskserver-url") != -1));
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody()); assertEquals("mike", header.getFrom());
EmailNotificationHeader header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody()); header = emailNotification.getEmailHeaders().get(lang); assertNotNull(header); assertEquals("Test of notification", header.getSubject()); assertEquals("And here is the body", header.getBody());