Search in sources :

Example 1 with RemoveTaskRequest

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);
}
Also used : RemoveTaskRequest(com.cmput301w18t05.taskzilla.request.command.RemoveTaskRequest)

Example 2 with RemoveTaskRequest

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());
}
Also used : GetTaskRequest(com.cmput301w18t05.taskzilla.request.command.GetTaskRequest) RemoveTaskRequest(com.cmput301w18t05.taskzilla.request.command.RemoveTaskRequest)

Aggregations

RemoveTaskRequest (com.cmput301w18t05.taskzilla.request.command.RemoveTaskRequest)2 GetTaskRequest (com.cmput301w18t05.taskzilla.request.command.GetTaskRequest)1