use of com.cmput301w18t05.taskzilla.request.command.RemoveTaskRequest in project Taskzilla by CMPUT301W18T05.
the class ViewTaskController method RemoveTaskRequest.
public void RemoveTaskRequest(Task task) {
RemoveTaskRequest request = new RemoveTaskRequest(task.getId());
RequestManager.getInstance().invokeRequest(ctx, request);
}
use of com.cmput301w18t05.taskzilla.request.command.RemoveTaskRequest in project Taskzilla by CMPUT301W18T05.
the class RequestManagerTest method testRemoveTask.
public void testRemoveTask() {
RemoveTaskRequest request = new RemoveTaskRequest(task.getId());
RequestManager.getInstance().invokeRequest(ctx, request);
GetTaskRequest getTaskRequest = new GetTaskRequest(task.getId());
RequestManager.getInstance().invokeRequest(getTaskRequest);
assertNull(getTaskRequest.getResult());
}
Aggregations