src/test/java/systemtests/ImportCommandSystemTest.java
private static void updateStorageAndAddressBook(ReadOnlyParcel... parcels) throws IOException {
        AddressBookBuilder addressBookBuilder = new AddressBookBuilder();

        for (ReadOnlyParcel parcel : parcels) {
            addressBookBuilder.withParcel(parcel);
        }

        addressBook = addressBookBuilder.build();
        storage.saveAddressBook(addressBook);
    }
/**
     * Creates a new {@link AddressBook} and adds {@link ReadOnlyParcel} in parcels to the newly created
     * {@link AddressBook}. Saves the newly created {@link AddressBook} into the {@code storage}
     *
     * @param parcels the list of parcels to add into the newly created {@link AddressBook}
     * @throws IOException if {@code storage} is not a valid storage file/path
     */
Creates a new  AddressBook and adds  ReadOnlyParcel in parcels to the newly created
AddressBook. Saves the newly created  AddressBook into the  storage

@param parcels the list of parcels to add into the newly created  AddressBook
@throws IOException if  storage is not a valid storage file/path
Creates a new AddressBook and adds ReadOnlyParcel in parcels to the newly created AddressBook . Saves the newly created AddressBook into the storage @param parcels the list of parcels to add into the newly created AddressBook @throws IOException if storage is not a valid storage file / path
private static void updateStorageAndAddressBook(ReadOnlyParcel... parcels) throws IOException {
        AddressBookBuilder addressBookBuilder = new AddressBookBuilder();
        for (ReadOnlyParcel parcel : parcels) {
            addressBookBuilder.withParcel(parcel);
        }
        addressBook = addressBookBuilder.build();
        storage.saveAddressBook(addressBook);
    }
private static void updateStorageAndAddressBook ( ReadOnlyParcel ... parcels ) throws IOException { AddressBookBuilder addressBookBuilder = new AddressBookBuilder ( ) ; for ( ReadOnlyParcel parcel : parcels ) { addressBookBuilder . withParcel ( parcel ) ; } addressBook = addressBookBuilder . build ( ) ; storage . saveAddressBook ( addressBook ) ; }
Creates a new {@link AddressBook} and adds {@link ReadOnlyParcel} in parcels to the newly created
 {@link AddressBook}.
Creates a new { @link AddressBook } and adds { @link ReadOnlyParcel } in parcels to the newly created { @link AddressBook } .