@@ -0,0 +1,868 @@
+package TestCases;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0A%0Aimport org.joda.time.DateTime;%0Aimport org.junit.Test;%0A%0Aimport taskDo.Executor;%0Aimport taskDo.StorageList;%0Aimport taskDo.Task;%0Aimport commandFactory.CommandType;%0Aimport Parser.ParsedResult;%0A%0Apublic class ExecutorTestCase %7B%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09ParsedResult testParsedResult = new ParsedResult();%0A%09%09testParsedResult.setCommandType(CommandType.ADD);%0A%09%09Task testTask = new Task();%0A%09%09testTask.setDescription(%22test task 1%22);%0A%09%09%0A%09%09DateTime dueDate = new DateTime();%0A%09%09testTask.setDueDate(dueDate);%0A%09%09testParsedResult.setTask(testTask);%0A%09%09Executor executor = new Executor();%0A%09%09executor.execute(testParsedResult);%0A%09%09%0A%09%09ArrayList%3CTask%3E testArrayList = new ArrayList%3CTask%3E();%0A%09%09testArrayList.add(testTask);%0A%09%09assertEquals(StorageList.getInstance().getTaskList(), testArrayList);%0A%09%7D%0A%7D%0A

add first test case