File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
main/java/seedu/address/logic/commands
test/java/seedu/address/logic/parser Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1010 */
1111public class ClearCommand extends Command {
1212
13- public static final String COMMAND_WORD = "clear" ;
14- public static final String MESSAGE_SUCCESS = "Address book has been cleared!" ;
13+ public static final String COMMAND_WORD = "contact clear" ;
14+ public static final String MESSAGE_SUCCESS = "All contacts have been cleared!" ;
1515
1616
1717 @ Override
Original file line number Diff line number Diff line change 99import org .junit .jupiter .api .Test ;
1010
1111import seedu .address .logic .commands .AddCommand ;
12+ import seedu .address .logic .commands .ClearCommand ;
1213import seedu .address .logic .commands .ExitCommand ;
1314import seedu .address .logic .commands .HelpCommand ;
1415import seedu .address .logic .parser .exceptions .ParseException ;
@@ -27,11 +28,11 @@ public void parseCommand_add() throws Exception {
2728 assertEquals (new AddCommand (person ), command );
2829 }
2930
30- // @Test
31- // public void parseCommand_clear() throws Exception {
32- // assertTrue(parser.parseCommand(ClearCommand.COMMAND_WORD) instanceof ClearCommand);
33- // assertTrue(parser.parseCommand(ClearCommand.COMMAND_WORD + " 3") instanceof ClearCommand);
34- // }
31+ @ Test
32+ public void parseCommand_clear () throws Exception {
33+ assertTrue (parser .parseCommand (ClearCommand .COMMAND_WORD ) instanceof ClearCommand );
34+ assertTrue (parser .parseCommand (ClearCommand .COMMAND_WORD + " 3" ) instanceof ClearCommand );
35+ }
3536
3637 // @Test
3738 // public void parseCommand_delete() throws Exception {
You can’t perform that action at this time.
0 commit comments