package guitests;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import seedu.address.logic.commands.UndoCommand;
import seedu.address.testutil.TestTask;
import seedu.address.testutil.TestUtil;

public class UndoCommandTest extends TaskManagerGuiTest {

    private TestTask[] expectedList = td.getTypicalTasks();

    /**
     * Tries to undo an add command
     */
    @Test
        TestTask taskToAdd = td.alice;
        commandBox.runCommand(taskToAdd.getAddCommand());
        assertUndoSuccess(expectedList);
    }

}


package guitests;

public class UndoCommandTest {

}

--- 
+++ 
@@ -1,5 +1,25 @@
 package guitests;
 
-public class UndoCommandTest {
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
+import seedu.address.logic.commands.UndoCommand;
+import seedu.address.testutil.TestTask;
+import seedu.address.testutil.TestUtil;
+
+public class UndoCommandTest extends TaskManagerGuiTest {
+
+    private TestTask[] expectedList = td.getTypicalTasks();
+
+    /**
+     * Tries to undo an add command
+     */
+    @Test
+        TestTask taskToAdd = td.alice;
+        commandBox.runCommand(taskToAdd.getAddCommand());
+        assertUndoSuccess(expectedList);
+    }
 
 }
+
Add test case for undo add command
