diff --git a/src/main/java/seedu/address/logic/Messages.java b/src/main/java/seedu/address/logic/Messages.java index b4336e7c7bc..a8c43161d7b 100644 --- a/src/main/java/seedu/address/logic/Messages.java +++ b/src/main/java/seedu/address/logic/Messages.java @@ -22,7 +22,8 @@ public class Messages { + "the funds the Employee currently has!"; public static final String MESSAGE_EMPTY_DEPARTMENT_FILTER = "department name cannot be empty!"; - public static final String MESSAGE_LIST_COMMAND_FORMAT = "list: Lists all the details of an organization’s employees, " + public static final String MESSAGE_LIST_COMMAND_FORMAT = "list: " + + "Lists all the details of an organization’s employees, " + "or list all employees of a specified department (case-insensitive).\n" + "Parameters: [d/DEPARTMENT] (optional)\n" + "Example: list (to list all employees) or " diff --git a/src/test/java/seedu/address/logic/parser/AddressBookParserTest.java b/src/test/java/seedu/address/logic/parser/AddressBookParserTest.java index 46c09c9f742..8ab07ea2dde 100644 --- a/src/test/java/seedu/address/logic/parser/AddressBookParserTest.java +++ b/src/test/java/seedu/address/logic/parser/AddressBookParserTest.java @@ -2,7 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import static seedu.address.logic.Messages.*; +import static seedu.address.logic.Messages.MESSAGE_INVALID_COMMAND_FORMAT; +import static seedu.address.logic.Messages.MESSAGE_LIST_COMMAND_FORMAT; +import static seedu.address.logic.Messages.MESSAGE_UNKNOWN_COMMAND; import static seedu.address.testutil.Assert.assertThrows; import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_PERSON; @@ -84,7 +86,8 @@ public void parseCommand_help() throws Exception { @Test public void parseCommand_list() throws Exception { assertTrue(parser.parseCommand(ListCommand.COMMAND_WORD) instanceof ListCommand); - assertThrows(ParseException.class, String.format(MESSAGE_INVALID_COMMAND_FORMAT, MESSAGE_LIST_COMMAND_FORMAT), () + assertThrows(ParseException.class, String.format(MESSAGE_INVALID_COMMAND_FORMAT, + MESSAGE_LIST_COMMAND_FORMAT), () -> parser.parseCommand(ListCommand.COMMAND_WORD + " 3")); }