diff --git a/src/test/java/seedu/cafectrl/parser/ParserTest.java b/src/test/java/seedu/cafectrl/parser/ParserTest.java index f286715e2d..98c5cfe44e 100644 --- a/src/test/java/seedu/cafectrl/parser/ParserTest.java +++ b/src/test/java/seedu/cafectrl/parser/ParserTest.java @@ -48,7 +48,7 @@ public void parseCommand_validListIngredientsCommand_successfulCommandParse() { Sales sales = new Sales(); CurrentDate currentDate = new CurrentDate(); - String userInput = "list_ingredients 1"; + String userInput = "list_ingredients index/1"; ParserUtil parserUtil = new Parser(); Command result = parserUtil.parseCommand(menu, userInput, ui, pantry, sales, currentDate); @@ -85,7 +85,7 @@ public void parseCommand_invalidListIngredientsIndex_returnsErrorMessage() { Pantry pantry = new Pantry(ui); Sales sales = new Sales(); CurrentDate currentDate = new CurrentDate(); - String userInput = "list_ingredients a"; + String userInput = "list_ingredients index/a"; ParserUtil parserUtil = new Parser(); Command result = parserUtil.parseCommand(menu, userInput, ui, pantry, sales, currentDate); @@ -103,7 +103,7 @@ public void parseCommand_listIngredientIndexOutOfBounds_returnsErrorMessage() { Pantry pantry = new Pantry(ui); Sales sales = new Sales(); CurrentDate currentDate = new CurrentDate(); - String userInput = "list_ingredients 1"; + String userInput = "list_ingredients index/1"; ParserUtil parserUtil = new Parser(); Command result = parserUtil.parseCommand(menu, userInput, ui, pantry, sales, currentDate);