Package org.japura.task

Examples of org.japura.task.Task


  task.registerStatus(TaskStatus.DONE);
  }

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


  task.registerStatus(TaskStatus.PENDING);
  }

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

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

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

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

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

  task.registerStatus(TaskStatus.SUBMITTED);
  }

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

  task.registerStatus(TaskStatus.PENDING);
  }

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

  task.registerStatus(TaskStatus.ERROR);
  }

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

  task.registerStatus(TaskStatus.DONE);
  }

  @Test()
  public void submittedToDiscarded() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.DISCARDED);
  }
View Full Code Here

  task.registerStatus(TaskStatus.DISCARDED);
  }

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

  task.registerStatus(TaskStatus.SUBMITTED);
  }

  @Test(expected = TaskExeception.class)
  public void canceledToDone() {
  Task task = new Task();
  task.registerStatus(TaskStatus.SUBMITTED);
  task.registerStatus(TaskStatus.CANCELED);
  task.registerStatus(TaskStatus.DONE);
  }
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.