From 1d219fd4d2419522bae3d99bdd75a1e2ae574f88 Mon Sep 17 00:00:00 2001 From: Pinran-J Date: Thu, 27 Oct 2022 13:14:31 +0800 Subject: [PATCH] fixed checkstyles --- .../seedu/address/logic/commands/CommandTestUtil.java | 2 +- .../address/logic/commands/DeleteNoteCommandTest.java | 3 --- .../address/logic/commands/EditNoteCommandTest.java | 10 ---------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/test/java/seedu/address/logic/commands/CommandTestUtil.java b/src/test/java/seedu/address/logic/commands/CommandTestUtil.java index 36c5f9b98fe..e707d681567 100644 --- a/src/test/java/seedu/address/logic/commands/CommandTestUtil.java +++ b/src/test/java/seedu/address/logic/commands/CommandTestUtil.java @@ -123,7 +123,7 @@ public static void assertCommandSuccess(Command command, Model actualModel, Stri * Executes the given {@code command}, confirms that
* - a {@code CommandException} is thrown
* - the CommandException message matches {@code expectedMessage}
- * - the address book, filtered person & note list and selected person & note in {@code actualModel} remain unchanged + * - the address book, filtered person & note list, selected person & note in {@code actualModel} remain unchanged */ public static void assertCommandFailure(Command command, Model actualModel, String expectedMessage) { // we are unable to defensively copy the model for comparison later, so we can diff --git a/src/test/java/seedu/address/logic/commands/DeleteNoteCommandTest.java b/src/test/java/seedu/address/logic/commands/DeleteNoteCommandTest.java index 4585f01bdff..4433fbc4fe4 100644 --- a/src/test/java/seedu/address/logic/commands/DeleteNoteCommandTest.java +++ b/src/test/java/seedu/address/logic/commands/DeleteNoteCommandTest.java @@ -7,9 +7,7 @@ import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; import static seedu.address.logic.commands.CommandTestUtil.showNoteAtIndex; import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_NOTE; -import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_PERSON; import static seedu.address.testutil.TypicalIndexes.INDEX_SECOND_NOTE; -import static seedu.address.testutil.TypicalIndexes.INDEX_SECOND_PERSON; import static seedu.address.testutil.TypicalNotes.getTypicalAddressBook; import org.junit.jupiter.api.Test; @@ -24,7 +22,6 @@ import seedu.address.model.ModelManager; import seedu.address.model.UserPrefs; import seedu.address.model.note.Note; -import seedu.address.model.person.Person; import seedu.address.testutil.NoteBuilder; import seedu.address.testutil.PersonBuilder; diff --git a/src/test/java/seedu/address/logic/commands/EditNoteCommandTest.java b/src/test/java/seedu/address/logic/commands/EditNoteCommandTest.java index df4266db016..8f86c1fd97c 100644 --- a/src/test/java/seedu/address/logic/commands/EditNoteCommandTest.java +++ b/src/test/java/seedu/address/logic/commands/EditNoteCommandTest.java @@ -4,24 +4,16 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertTrue; -import static seedu.address.logic.commands.CommandTestUtil.DESC_AMY; -import static seedu.address.logic.commands.CommandTestUtil.DESC_BOB; import static seedu.address.logic.commands.CommandTestUtil.DESC_CLUB; import static seedu.address.logic.commands.CommandTestUtil.DESC_MEETING; import static seedu.address.logic.commands.CommandTestUtil.VALID_CONTENT_MEETING; -import static seedu.address.logic.commands.CommandTestUtil.VALID_NAME_BOB; -import static seedu.address.logic.commands.CommandTestUtil.VALID_PHONE_BOB; -import static seedu.address.logic.commands.CommandTestUtil.VALID_TAG_HUSBAND; import static seedu.address.logic.commands.CommandTestUtil.VALID_TITLE_CLUB; import static seedu.address.logic.commands.CommandTestUtil.VALID_TITLE_MEETING; import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure; import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; import static seedu.address.logic.commands.CommandTestUtil.showNoteAtIndex; -import static seedu.address.logic.commands.CommandTestUtil.showPersonAtIndex; import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_NOTE; -import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_PERSON; import static seedu.address.testutil.TypicalIndexes.INDEX_SECOND_NOTE; -import static seedu.address.testutil.TypicalIndexes.INDEX_SECOND_PERSON; import static seedu.address.testutil.TypicalNotes.getTypicalAddressBook; import java.util.ArrayList; @@ -41,10 +33,8 @@ import seedu.address.model.ModelManager; import seedu.address.model.UserPrefs; import seedu.address.model.note.Note; -import seedu.address.model.person.Person; import seedu.address.model.tag.Tag; import seedu.address.testutil.EditNoteDescriptorBuilder; -import seedu.address.testutil.EditPersonDescriptorBuilder; import seedu.address.testutil.NoteBuilder; import seedu.address.testutil.PersonBuilder;