src/test/java/systemtests/DeleteCommandSystemTest.java
private ReadOnlyParcel removeParcel(Model model, Index index) {
        ReadOnlyParcel targetParcel = getParcel(model, index);
        try {
            model.deleteParcel(targetParcel);
        } catch (ParcelNotFoundException pnfe) {
            throw new AssertionError("targetParcel is retrieved from model.");
        }
        return targetParcel;
    }
/**
     * Removes the {@code ReadOnlyParcel} at the specified {@code index} in {@code model}'s address book.
     * @return the removed parcel
     */
Removes the  ReadOnlyParcel at the specified  index in  model's address book.
@return the removed parcel
Removes the ReadOnlyParcel at the specified index in model ' s address book . @return the removed parcel
private ReadOnlyParcel removeParcel(Model model, Index index) {
        ReadOnlyParcel targetParcel = getParcel(model, index);
        try {
            model.deleteParcel(targetParcel);
        } catch (ParcelNotFoundException pnfe) {
            throw new AssertionError("targetParcel is retrieved from model.");
        }
        return targetParcel;
    }
private ReadOnlyParcel removeParcel ( Model model , Index index ) { ReadOnlyParcel targetParcel = getParcel ( model , index ) ; try { model . deleteParcel ( targetParcel ) ; } catch ( ParcelNotFoundException pnfe ) { throw new AssertionError ( "targetParcel is retrieved from model." ) ; } return targetParcel ; }
Removes the {@code ReadOnlyParcel} at the specified {@code index} in {@code model}'s address book.
Removes the { @code ReadOnlyParcel } at the specified { @code index } in { @code model } ' s address book .