src/test/java/seedu/address/logic/commands/FindCommandTest.java
private void assertCommandSuccess(FindCommand command, String expectedMessage, List<ReadOnlyParcel> expectedList,
                                      List<ReadOnlyParcel> expectedUndeliveredList,
                                      List<ReadOnlyParcel> expectedDeliveredList) {
        AddressBook expectedAddressBook = new AddressBook(model.getAddressBook());
        CommandResult commandResult = command.execute();

        assertEquals(expectedMessage, commandResult.feedbackToUser);
        assertEquals(expectedList, model.getFilteredParcelList());
        assertEquals(expectedAddressBook, model.getAddressBook());
        assertEquals(expectedUndeliveredList, model.getUncompletedParcelList());
        assertEquals(expectedDeliveredList, model.getCompletedParcelList());
    }
/**
     * Asserts that {@code command} is successfully executed, and<br>
     *     - the command feedback is equal to {@code expectedMessage}<br>
     *     - the {@code FilteredList<ReadOnlyParcel>} is equal to {@code expectedList}<br>
     *     - the {@code AddressBook} in model remains the same after executing the {@code command}
     */
Asserts that  command is successfully executed, and
- the command feedback is equal to  expectedMessage
- the  FilteredList is equal to  expectedList
- the  AddressBook in model remains the same after executing the  command
Asserts that command is successfully executed and - the command feedback is equal to expectedMessage - the FilteredList is equal to expectedList - the AddressBook in model remains the same after executing the command
private void assertCommandSuccess(FindCommand command, String expectedMessage, List<ReadOnlyParcel> expectedList,
                                      List<ReadOnlyParcel> expectedUndeliveredList,
                                      List<ReadOnlyParcel> expectedDeliveredList) {
        AddressBook expectedAddressBook = new AddressBook(model.getAddressBook());
        CommandResult commandResult = command.execute();
        assertEquals(expectedMessage, commandResult.feedbackToUser);
        assertEquals(expectedList, model.getFilteredParcelList());
        assertEquals(expectedAddressBook, model.getAddressBook());
        assertEquals(expectedUndeliveredList, model.getUncompletedParcelList());
        assertEquals(expectedDeliveredList, model.getCompletedParcelList());
    }
private void assertCommandSuccess ( FindCommand command , String expectedMessage , List < ReadOnlyParcel > expectedList , List < ReadOnlyParcel > expectedUndeliveredList , List < ReadOnlyParcel > expectedDeliveredList ) { AddressBook expectedAddressBook = new AddressBook ( model . getAddressBook ( ) ) ; CommandResult commandResult = command . execute ( ) ; assertEquals ( expectedMessage , commandResult . feedbackToUser ) ; assertEquals ( expectedList , model . getFilteredParcelList ( ) ) ; assertEquals ( expectedAddressBook , model . getAddressBook ( ) ) ; assertEquals ( expectedUndeliveredList , model . getUncompletedParcelList ( ) ) ; assertEquals ( expectedDeliveredList , model . getCompletedParcelList ( ) ) ; }
Asserts that {@code command} is successfully executed, and<br>
     - the command feedback is equal to {@code expectedMessage}<br>
     - the {@code FilteredList<ReadOnlyParcel>} is equal to {@code expectedList}<br>
     - the {@code AddressBook} in model remains the same after executing the {@code command}
Asserts that { @code command } is successfully executed and<br > - the command feedback is equal to { @code expectedMessage } <br > - the { @code FilteredList<ReadOnlyParcel > } is equal to { @code expectedList } <br > - the { @code AddressBook } in model remains the same after executing the { @code command }