Skip to content

Commit

Permalink
Add magic string
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamtha3005 committed Oct 26, 2016
1 parent 6350721 commit d08379e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/guitests/ListPriorityCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.junit.Test;

import seedu.taskell.commons.exceptions.IllegalValueException;
import seedu.taskell.model.task.TaskPriority;
import seedu.taskell.testutil.TestTask;

import static org.junit.Assert.assertTrue;
Expand All @@ -15,11 +16,11 @@ public void listPriority() throws IllegalValueException {

// list 2 tasks in the list
TestTask[] currentList = td.getTypicalTasks();
String priority = "1";
String priority = TaskPriority.LOW_PRIORITY;
assertlistPrioritySuccess(currentList, priority, td.archivePastEmails, td.borrowBooks, td.collectParcel, td.discardBooks,td.editPowerpoint);

//no tasks to list
priority = "0";
priority = TaskPriority.NO_PRIORITY;
assertlistPrioritySuccess(currentList, priority);

// invalid command format
Expand Down

0 comments on commit d08379e

Please sign in to comment.