Package fm.last.citrine.model

Examples of fm.last.citrine.model.Notification


   * Tests that changing a TaskRun's status ends up with the expected number of notifications being sent.
   */
  @Test
  public void testSetTaskRunStatus() {
    Task task = new Task("name", "group", "");
    task.setNotification(new Notification());
    taskManager.save(task);
    TaskRun taskRun = new TaskRun(new Date(), new Date(), "out", "err", "stack", task.getId());
   
    int mailCount = 0;
    // no mail should be sent for following
View Full Code Here


  }

  @Test
  public void testSaveGetAndUpdate_Notification() {
    Task task = new Task("name", "groupName", "sysExecTask", true, true, "command", defaultTimerSchedule);
    Notification notification = new Notification("recipients", false, false);
    task.setNotification(notification);
    taskDAO.save(task);
    assertTrue(task.getId() > 0);
    assertEquals(0, task.getVersion());
View Full Code Here

TOP

Related Classes of fm.last.citrine.model.Notification

Copyright © 2018 www.massapicom. 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.