Skip to content

Commit

Permalink
Add massive ListController test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinlim committed Nov 6, 2016
1 parent 779295b commit 32095f1
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/main/java/seedu/todo/controllers/ListController.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public class ListController extends Controller {
+ "while only events can be \"past\", \"over\" or \"future\".";
private static final String MESSAGE_INVALID_DATE = "We could not parse the date in your query, please try again.";

private static final String TEMPLATE_LIST = "list [from \"%s\"] [to \"%s\"] [tag \"%s\"]";
private static final String TEMPLATE_LIST_TASKS = "list tasks [\"%s\"] [from \"%s\"] [to \"%s\"] [tag \"%s\"]";
private static final String TEMPLATE_LIST_EVENTS = "list events [\"%s\"] [from \"%s\"] [to \"%s\"] [tag \"%s\"]";
public static final String TEMPLATE_LIST = "list [from \"%s\"] [to \"%s\"] [tag \"%s\"]";
public static final String TEMPLATE_LIST_TASKS = "list tasks [\"%s\"] [from \"%s\"] [to \"%s\"] [tag \"%s\"]";
public static final String TEMPLATE_LIST_EVENTS = "list events [\"%s\"] [from \"%s\"] [to \"%s\"] [tag \"%s\"]";

private static CommandDefinition commandDefinition =
new CommandDefinition(NAME, DESCRIPTION, COMMAND_SYNTAX, COMMAND_KEYWORD);
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/seedu/todo/controllers/concerns/Disambiguator.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
public class Disambiguator {

private static final String TOKEN_NAME = "name";
private static final String PLACEHOLDER_NAME = "<name>";
public static final String PLACEHOLDER_NAME = "<name>";
private static final String TOKEN_TASKSTATUS = "taskStatus";
private static final String PLACEHOLDER_TASKSTATUS = "<task status>";
public static final String PLACEHOLDER_TASKSTATUS = "<task status>";
private static final String TOKEN_EVENTSTATUS = "eventStatus";
private static final String PLACEHOLDER_EVENTSTATUS = "<event status>";
public static final String PLACEHOLDER_EVENTSTATUS = "<event status>";
private static final String TOKEN_TAG = "tag";
private static final String PLACEHOLDER_TAG = "<tag>";
public static final String PLACEHOLDER_TAG = "<tag>";
private static final String TOKEN_STARTTIME = "startTime";
private static final String PLACEHOLDER_STARTTIME = "<start>";
public static final String PLACEHOLDER_STARTTIME = "<start>";
private static final int INDEX_STARTTIME = 0;
private static final String TOKEN_ENDTIME = "endTime";
private static final String PLACEHOLDER_ENDTIME = "<end>";
public static final String PLACEHOLDER_ENDTIME = "<end>";
private static final int INDEX_ENDTIME = 1;

/**
Expand Down
Loading

0 comments on commit 32095f1

Please sign in to comment.