forked from CS2103AUG2017-W14-B2/main
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c0ac0d
commit 3db35bb
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
import seedu.address.model.person.Name; | ||
import seedu.address.model.person.Person; | ||
import seedu.address.model.person.Phone; | ||
import seedu.address.model.person.Photo; | ||
import seedu.address.model.person.ReadOnlyPerson; | ||
import seedu.address.model.tag.Tag; | ||
import seedu.address.model.util.SampleDataUtil; | ||
|
@@ -21,6 +22,7 @@ public class PersonBuilder { | |
public static final String DEFAULT_PHONE = "85355255"; | ||
public static final String DEFAULT_EMAIL = "[email protected]"; | ||
public static final String DEFAULT_ADDRESS = "123, Jurong West Ave 6, #08-111"; | ||
public static final String DEFAULT_PHOTO = "/data/default.jpeg"; | ||
public static final String DEFAULT_TAGS = "friends"; | ||
|
||
private Person person; | ||
|
@@ -31,8 +33,9 @@ public PersonBuilder() { | |
Phone defaultPhone = new Phone(DEFAULT_PHONE); | ||
Email defaultEmail = new Email(DEFAULT_EMAIL); | ||
Address defaultAddress = new Address(DEFAULT_ADDRESS); | ||
Photo defaultPhoto = new Photo(DEFAULT_PHOTO); | ||
Set<Tag> defaultTags = SampleDataUtil.getTagSet(DEFAULT_TAGS); | ||
this.person = new Person(defaultName, defaultPhone, defaultEmail, defaultAddress, defaultTags); | ||
this.person = new Person(defaultName, defaultPhone, defaultEmail, defaultAddress, defaultPhoto, defaultTags); | ||
} catch (IllegalValueException ive) { | ||
throw new AssertionError("Default person's values are invalid."); | ||
} | ||
|