src/test/java/systemtests/DeleteCommandSystemTest.java
private void assertCommandSuccess(Index toDelete) {
        Model expectedModel = getModel();
        ReadOnlyParcel deletedParcel = removeParcel(expectedModel, toDelete);
        String expectedResultMessage = String.format(MESSAGE_DELETE_PARCEL_SUCCESS, deletedParcel);

        assertCommandSuccess(
                DeleteCommand.COMMAND_WORD + " " + toDelete.getOneBased(), expectedModel, expectedResultMessage);
    }
/**
     * Deletes the parcel at {@code toDelete} by creating a default {@code DeleteCommand} using {@code toDelete} and
     * performs the same verification as {@code assertCommandSuccess(String, Model, String)}.
     * @see DeleteCommandSystemTest#assertCommandSuccess(String, Model, String)
     */
Deletes the parcel at  toDelete by creating a default  DeleteCommand using  toDelete and
performs the same verification as  assertCommandSuccess(String, Model, String).
Deletes the parcel at toDelete by creating a default DeleteCommand using toDelete and performs the same verification as assertCommandSuccess ( String Model String ) .
private void assertCommandSuccess(Index toDelete) {
        Model expectedModel = getModel();
        ReadOnlyParcel deletedParcel = removeParcel(expectedModel, toDelete);
        String expectedResultMessage = String.format(MESSAGE_DELETE_PARCEL_SUCCESS, deletedParcel);
        assertCommandSuccess(
                DeleteCommand.COMMAND_WORD + " " + toDelete.getOneBased(), expectedModel, expectedResultMessage);
    }
private void assertCommandSuccess ( Index toDelete ) { Model expectedModel = getModel ( ) ; ReadOnlyParcel deletedParcel = removeParcel ( expectedModel , toDelete ) ; String expectedResultMessage = String . format ( MESSAGE_DELETE_PARCEL_SUCCESS , deletedParcel ) ; assertCommandSuccess ( DeleteCommand . COMMAND_WORD + " " + toDelete . getOneBased ( ) , expectedModel , expectedResultMessage ) ; }
Deletes the parcel at {@code toDelete} by creating a default {@code DeleteCommand} using {@code toDelete} and
 performs the same verification as {@code assertCommandSuccess(String, Model, String)}.
Deletes the parcel at { @code toDelete } by creating a default { @code DeleteCommand } using { @code toDelete } and performs the same verification as { @code assertCommandSuccess ( String Model String ) } .