src/test/java/seedu/address/testutil/ParcelBuilder.java
public ParcelBuilder withEmail(String email) {
        try {
            this.parcel.setEmail(new Email(email));
        } catch (IllegalValueException ive) {
            throw new IllegalArgumentException("email is expected to be unique.");
        }
        return this;
    }
/**
     * Sets the {@code Email} of the {@code Parcel} that we are building.
     */
Sets the  Email of the  Parcel that we are building.
Sets the Email of the Parcel that we are building .
public ParcelBuilder withEmail(String email) {
        try {
            this.parcel.setEmail(new Email(email));
        } catch (IllegalValueException ive) {
            throw new IllegalArgumentException("email is expected to be unique.");
        }
        return this;
    }
public ParcelBuilder withEmail ( String email ) { try { this . parcel . setEmail ( new Email ( email ) ) ; } catch ( IllegalValueException ive ) { throw new IllegalArgumentException ( "email is expected to be unique." ) ; } return this ; }
Sets the {@code Email} of the {@code Parcel} that we are building.
Sets the { @code Email } of the { @code Parcel } that we are building .