Ejemplo n.º 1
0
 private void addFloatingTasks(State state, AddTask addTask, int a) {
   state.setIsEndDateChanged(false);
   for (int i = 0; i < a; i++) {
     addTask.process();
   }
   assertEquals(a, state.getAllTasks().size());
   assertEquals(a, state.getFloatingTasks().size());
 }
Ejemplo n.º 2
0
  private void addDeadlineTasks(State state, AddTask addTask, int a) {
    state.setIsEndDateChanged(true);
    state.setEndDate(new Date(System.currentTimeMillis()));

    for (int i = 0; i < a; i++) {
      addTask.process();
    }
    assertEquals(a, state.getDeadlineTasks().size());
    assertEquals(a, state.getAllTasks().size());
  }