Examples of ToDoDO


Examples of org.projectforge.plugins.todo.ToDoDO

  @Test
  public void mailTemplateTest()
  {
    final GroovyEngine engine = new GroovyEngine(Locale.GERMAN,  TimeZone.getTimeZone("UTC"));
    engine.putVariable("recipient", new PFUserDO().setFirstname("Kai").setLastname("Reinhard"));
    engine.putVariable("todo", new ToDoDO().setType(ToDoType.IMPROVEMENT).setPriority(Priority.HIGH));
    engine.putVariable("history", new ArrayList<DisplayHistoryEntry>());
    engine.putVariable("requestUrl", "https://localhost:8443/wa/toDoEditPage/id/42");
    final String result = engine.executeTemplateFile("mail/todoChangeNotification.html");
    assertTrue("I18n priorty expected.", result.contains("hoch"));
    assertTrue("I18n key for type improvement expected.", result.contains("???plugins.todo.type.improvement???"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.