Package org.japura.task

Examples of org.japura.task.Task


  task.registerStatus(TaskStatus.SUBMITTED);
  }

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


  task.registerStatus(TaskStatus.EXECUTING);
  }

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

  task.registerStatus(TaskStatus.DISCARDED);
  }

  @Test
  public void errorToSubmitted() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.EXECUTING);
  task.registerStatus(TaskStatus.ERROR);
  task.registerStatus(TaskStatus.SUBMITTED);
  Assert.assertEquals(TaskStatus.SUBMITTED, task.getStatus());
  }
View Full Code Here

  Assert.assertEquals(TaskStatus.SUBMITTED, task.getStatus());
  }

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

  task.registerStatus(TaskStatus.PENDING);
  }

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

  task.registerStatus(TaskStatus.CANCELED);
  }

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

  task.registerStatus(TaskStatus.EXECUTING);
  }

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

  task.registerStatus(TaskStatus.DONE);
  }

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

  task.registerStatus(TaskStatus.ERROR);
  }

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

  task.registerStatus(TaskStatus.DISCARDED);
  }

  @Test
  public void doneToSubmitted() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.EXECUTING);
  task.registerStatus(TaskStatus.DONE);
  task.registerStatus(TaskStatus.SUBMITTED);
  Assert.assertEquals(TaskStatus.SUBMITTED, task.getStatus());
  }
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.