Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Commit

Permalink
Add invalid input to delete test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiendong committed Nov 6, 2016
1 parent e1dd345 commit 7dba53b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/guitests/DeleteCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ public void delete_allTasks() {
}
}

@Test
public void delete_invalidCommands() {
//Missing Index
assertErrorViewDisplayed("delete ");

//Invalid Index
assertErrorViewDisplayed("delete a");
}

/**
* A helper method to run the entire delete command process and testing.
*/
Expand Down

0 comments on commit 7dba53b

Please sign in to comment.