@@ -0,0 +1,1361 @@
+package guitests;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.Test;%0A%0Aimport javafx.scene.input.KeyCode;%0A%0A//@@author A0146107M%0Apublic class AutocompleteTest extends TaskListGuiTest %7B%0A%0A%09@Test%0A%09public void autocompleteWithSpace_success_commandDisplayed() %7B%0A%09%09//assert empty commandBox%0A%09%09assertEquals(commandBox.getCommandInput(), %22%22);%0A%09%09//assert command autocompleted with SPACE%0A%09%09commandBox.enterCommand(%22ad%22);%0A%09%09commandBox.pressKey(KeyCode.SPACE);%0A%09%09assertEquals(commandBox.getCommandInput(), %22add %22);%0A%09%7D%0A%09%0A%09@Test%0A%09public void autocompleteWithTab_success_commandDisplayed() %7B%0A%09%09//assert empty commandBox%0A%09%09assertEquals(commandBox.getCommandInput(), %22%22);%0A%09%09//assert command autocompleted with TAB%0A%09%09commandBox.enterCommand(%22f%22);%0A%09%09commandBox.pressKey(KeyCode.TAB);%0A%09%09assertEquals(commandBox.getCommandInput(), %22find%22);%0A%09%7D%0A%09%0A%09@Test%0A%09public void autocomplete_noMatches_nothingHappens() %7B%0A%09%09//type in bad starting character%0A%09%09commandBox.enterCommand(%22z%22);%0A%09%09//assert command nothing happens%0A%09%09commandBox.pressKey(KeyCode.TAB);%0A%09%09assertEquals(commandBox.getCommandInput(), %22z%22);%0A%09%7D%0A%09%0A%09@Test%0A%09public void autocomplete_multipleMatches_nothingHappens() %7B%0A%09%09//type in bad starting character%0A%09%09commandBox.enterCommand(%22u%22);%0A%09%09//assert command nothing happens%0A%09%09commandBox.pressKey(KeyCode.TAB);%0A%09%09assertEquals(commandBox.getCommandInput(), %22u%22);%0A%09%7D%0A%0A%7D%0A

Add autocomplete tests