@@ -0,0 +1,889 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Apublic class ClearCommandTest extends AddressBookGuiTest %7B%0A%0A    @Test%0A    public void clear() %7B%0A%0A        //verify a non-empty list can be cleared%0A        assertTrue(personListPanel.isListMatching(td.getTypicalPersons()));%0A        assertClearCommandSuccess();%0A%0A        //verify other commands can work after a clear command%0A        commandBox.runCommand(td.hoon.getAddCommand());%0A        assertTrue(personListPanel.isListMatching(td.hoon));%0A        commandBox.runCommand(%22delete 1%22);%0A        assertListSize(0);%0A%0A        //verify clear command works when the list is empty%0A        assertClearCommandSuccess();%0A    %7D%0A%0A    private void assertClearCommandSuccess() %7B%0A        commandBox.runCommand(%22clear all%22);%0A        assertListSize(0);%0A        assertResultMessage(%22All tasks have been cleared!%22);%0A    %7D%0A%7D%0A

add ClearCommandTest