Package org.japura.task

Examples of org.japura.task.Task


  task.registerStatus(TaskStatus.DISCARDED);
  }

  @Test(expected = TaskExeception.class)
  public void discardedToDone() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.DISCARDED);
  task.registerStatus(TaskStatus.DONE);
  }
View Full Code Here


  task.registerStatus(TaskStatus.DONE);
  }

  @Test(expected = TaskExeception.class)
  public void discardedToError() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.DISCARDED);
  task.registerStatus(TaskStatus.ERROR);
  }
View Full Code Here

  task.registerStatus(TaskStatus.ERROR);
  }

  @Test()
  public void discardedToExecuting() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.DISCARDED);
  thrown.expect(TaskExeception.class);
  task.registerStatus(TaskStatus.EXECUTING);
  }
View Full Code Here

  task.registerStatus(TaskStatus.EXECUTING);
  }

  @Test()
  public void discardedToPending() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.DISCARDED);
  thrown.expect(TaskExeception.class);
  task.registerStatus(TaskStatus.PENDING);
  }
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.