Package org.japura.task

Examples of org.japura.task.Task


   */
  @Test
  public void submitNestedTask3() {
  // parent task status =
  thrown.expect(TaskExeception.class);
  Task parentTask = buildTaskWithOwner(); //
  parentTask.submitNestedTask(new Task());
  }
View Full Code Here


   * parent Task status = SUBMITTED must be EXECUTING
   */
  @Test
  public void submitNestedTask4() {
  thrown.expect(TaskExeception.class);
  Task parentTask = buildTaskWithOwner();
  parentTask.registerStatus(TaskStatus.SUBMITTED);
  Task task = new Task();
  parentTask.submitNestedTask(task);
  }
View Full Code Here

   * parent Task status = ERROR must be EXECUTING
   */
  @Test
  public void submitNestedTask5() {
  thrown.expect(TaskExeception.class);
  Task parentTask = buildTaskWithOwner();
  parentTask.registerStatus(TaskStatus.SUBMITTED);
  parentTask.registerStatus(TaskStatus.EXECUTING);
  parentTask.registerStatus(TaskStatus.ERROR);
  parentTask.submitNestedTask(new Task());
  }
View Full Code Here

   * parent Task status = DONE must be EXECUTING
   */
  @Test
  public void submitNestedTask6() {
  thrown.expect(TaskExeception.class);
  Task parentTask = buildTaskWithOwner();
  parentTask.registerStatus(TaskStatus.SUBMITTED);
  parentTask.registerStatus(TaskStatus.EXECUTING);
  parentTask.registerStatus(TaskStatus.DONE);
  parentTask.submitNestedTask(new Task());
  }
View Full Code Here

   * parent Task status = CANCELED must be EXECUTING
   */
  @Test
  public void submitNestedTask7() {
  thrown.expect(TaskExeception.class);
  Task parentTask = buildTaskWithOwner();
  parentTask.registerStatus(TaskStatus.SUBMITTED);
  parentTask.registerStatus(TaskStatus.CANCELED);
  parentTask.submitNestedTask(new Task());
  }
View Full Code Here

  @Test
  public void submitNestedTask8() {
  thrown.expect(TaskExeception.class);

  Task parentTask = buildExecutingTask();

  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  parentTask.submitNestedTask(task);
  }
View Full Code Here

  @Test
  public void submitNestedTask9() {
  thrown.expect(TaskExeception.class);

  Task parentTask = buildExecutingTask();

  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.EXECUTING);
  parentTask.submitNestedTask(task);
  }
View Full Code Here

  parentTask.submitNestedTask(task);
  }

  @Test
  public void submitNestedTask10() {
  Task parentTask = buildExecutingTask();

  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.EXECUTING);
  task.registerStatus(TaskStatus.ERROR);
  parentTask.submitNestedTask(task);
  }
View Full Code Here

  parentTask.submitNestedTask(task);
  }

  @Test
  public void submitNestedTask11() {
  Task parentTask = buildExecutingTask();

  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.EXECUTING);
  task.registerStatus(TaskStatus.DONE);
  parentTask.submitNestedTask(task);
  }
View Full Code Here

  parentTask.submitNestedTask(task);
  }

  @Test
  public void submitNestedTask12() {
  Task parentTask = buildExecutingTask();

  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.CANCELED);
  parentTask.submitNestedTask(task);
  }
View Full Code Here

TOP

Related Classes of org.japura.task.Task

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.