@@ -0,0 +1,939 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Apublic class ClearDoneCommandTest extends TaskManagerGuiTest %7B%0A%0A    @Test%0A    public void clearDone() %7B%0A%0A        //verify a non-empty list can be cleared%0A        commandBox.runCommand(%22clear done%22);%0A        assertClearDoneCommandSuccess();%0A%0A        //verify other commands can work after a clear command%0A        commandBox.runCommand(td.hoon.getAddCommand());%0A        commandBox.runCommand(%22delete 1%22);%0A%0A        //verify clear command works when the list is empty%0A        commandBox.runCommand(%22clear%22);%0A        commandBox.runCommand(%22clear done%22);%0A        assertClearDoneCommandSuccess();%0A    %7D%0A%0A    private void assertClearDoneCommandSuccess() %7B%0A        commandBox.runCommand(%22clear done%22);%0A        assertResultMessage(%22Done tasks has been cleared!%22);%0A        commandBox.runCommand(%22show done%22); // go to done list%0A        assertListSize(0);%0A    %7D%0A%7D%0A

add ClearDoneCommandTest