Skip to content

Commit

Permalink
Remove Note Command and its Test cases
Browse files Browse the repository at this point in the history
Remove Note Command and its Test cases.

Files removed:
- NoteCommand.java
- NoteCommandParser.java
- NoteCommandTest.java
- NoteCommanParserTest.java

Files Updated:
- AddressBookParser.java
- AddressBookParserTest.java
  • Loading branch information
Darren-Tung committed Nov 5, 2024
1 parent 3a383c3 commit be3abb0
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 315 deletions.
101 changes: 0 additions & 101 deletions src/main/java/seedu/address/logic/commands/NoteCommand.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import seedu.address.logic.commands.FindCommand;
import seedu.address.logic.commands.HelpCommand;
import seedu.address.logic.commands.ListCommand;
import seedu.address.logic.commands.NoteCommand;
import seedu.address.logic.commands.SummaryCommand;
import seedu.address.logic.commands.ViewCommand;
import seedu.address.logic.parser.exceptions.ParseException;
Expand Down Expand Up @@ -81,9 +80,6 @@ public Command parseCommand(String userInput) throws ParseException {
case ViewCommand.COMMAND_WORD:
return new ViewCommandParser().parse(arguments);

case NoteCommand.COMMAND_WORD:
return new NoteCommandParser().parse(arguments);

case DesiredRoleCommand.COMMAND_WORD:
return new DesiredRoleCommandParser().parse(arguments);

Expand Down
37 changes: 0 additions & 37 deletions src/main/java/seedu/address/logic/parser/NoteCommandParser.java

This file was deleted.

119 changes: 0 additions & 119 deletions src/test/java/seedu/address/logic/commands/NoteCommandTest.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.Messages.MESSAGE_UNKNOWN_COMMAND;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NOTE;
import static seedu.address.testutil.Assert.assertThrows;
import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_PERSON;

Expand All @@ -23,11 +22,9 @@
import seedu.address.logic.commands.FindCommand;
import seedu.address.logic.commands.HelpCommand;
import seedu.address.logic.commands.ListCommand;
import seedu.address.logic.commands.NoteCommand;
import seedu.address.logic.commands.SummaryCommand;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.person.NameContainsKeywordsPredicate;
import seedu.address.model.person.Note;
import seedu.address.model.person.Person;
import seedu.address.testutil.EditPersonDescriptorBuilder;
import seedu.address.testutil.PersonBuilder;
Expand Down Expand Up @@ -92,14 +89,6 @@ public void parseCommand_list() throws Exception {
assertTrue(parser.parseCommand(ListCommand.COMMAND_WORD + " 3") instanceof ListCommand);
}

@Test
public void parseCommand_note() throws Exception {
final Note note = new Note("Some note.");
NoteCommand command = (NoteCommand) parser.parseCommand(NoteCommand.COMMAND_WORD + " "
+ INDEX_FIRST_PERSON.getOneBased() + " " + PREFIX_NOTE + note.value);
assertEquals(new NoteCommand(INDEX_FIRST_PERSON, note), command);
}

@Test
public void parseCommand_summary() throws Exception {
assertTrue(parser.parseCommand(SummaryCommand.COMMAND_WORD) instanceof SummaryCommand);
Expand Down

This file was deleted.

0 comments on commit be3abb0

Please sign in to comment.