Skip to content

Commit

Permalink
Update to follow checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellaantania committed Oct 12, 2023
1 parent 5a960fc commit 9cc37fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/seedu/address/logic/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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"));
}

Expand Down

0 comments on commit 9cc37fa

Please sign in to comment.