Skip to content

Commit

Permalink
Now, add-w need one more attribute, id.
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuXuanIan committed Apr 2, 2019
1 parent 464c05a commit 2d0af4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
import static seedu.equipment.logic.commands.CommandTestUtil.VALID_DATE_LISTA;
import static seedu.equipment.logic.parser.CommandParserTestUtil.assertParseFailure;
//import static seedu.equipment.logic.parser.CommandParserTestUtil.assertParseSuccess;
import static seedu.equipment.testutil.TypicalWorkLists.LISTC;
//import static seedu.equipment.testutil.TypicalWorkLists.LISTC;

import org.junit.Test;

import seedu.equipment.logic.commands.AddWorkListCommand;
import seedu.equipment.model.WorkList;
//import seedu.equipment.model.WorkList;
//import seedu.equipment.model.equipment.Name;
//import seedu.equipment.model.equipment.Phone;
import seedu.equipment.testutil.WorkListBuilder;
//import seedu.equipment.testutil.WorkListBuilder;

public class AddWorkListCommandParserTest {
private AddWorkListCommandParser parser = new AddWorkListCommandParser();
Expand Down
13 changes: 6 additions & 7 deletions src/test/java/seedu/equipment/testutil/TypicalWorkLists.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package seedu.equipment.testutil;

import static seedu.equipment.logic.commands.CommandTestUtil.ASSIGNEE_DESC_LISTA;
import static seedu.equipment.logic.commands.CommandTestUtil.DATE_DESC_LISTA;
import static seedu.equipment.logic.commands.CommandTestUtil.ID_DESC_LISTA;
//import static seedu.equipment.logic.commands.CommandTestUtil.ASSIGNEE_DESC_LISTA;
//import static seedu.equipment.logic.commands.CommandTestUtil.DATE_DESC_LISTA;
//import static seedu.equipment.logic.commands.CommandTestUtil.ID_DESC_LISTA;
import static seedu.equipment.logic.commands.CommandTestUtil.VALID_ASSIGNEE_LISTA;
import static seedu.equipment.logic.commands.CommandTestUtil.VALID_DATE_LISTA;
import static seedu.equipment.logic.commands.CommandTestUtil.VALID_ID_LISTA;
Expand All @@ -17,7 +17,7 @@

import seedu.equipment.model.EquipmentManager;
import seedu.equipment.model.WorkList;
import seedu.equipment.model.WorkListId;
//import seedu.equipment.model.WorkListId;

/**
* A utility class containing a list of {@code WorkList} objects to be used in tests.
Expand All @@ -26,9 +26,8 @@ public class TypicalWorkLists {

public static final WorkList LISTA = new WorkListBuilder().withDate("07 June 2020").withAssignee("Rachel")
.withId("3").build();
//public static final WorkList LISTB = new WorkListBuilder().withDate("08 July 2030").withAssignee("Yiqun")
// .withId("4").build();
public static final WorkList LISTB = new WorkList("08 July 2030", "Yiqun", new WorkListId("4"));
public static final WorkList LISTB = new WorkListBuilder().withDate("08 July 2030").withAssignee("Yiqun")
.withId("4").build();
public static final WorkList LISTC = new WorkListBuilder().withDate(VALID_DATE_LISTA)
.withAssignee(VALID_ASSIGNEE_LISTA).withId(VALID_ID_LISTA).build();
public static final WorkList LISTD = new WorkListBuilder().withDate("09 August 2033").withAssignee("Liu Xuan")
Expand Down

0 comments on commit 2d0af4e

Please sign in to comment.