-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Branch-Add-Json #76
Branch-Add-Json #76
Conversation
* 'master' of https://github.com/KhoonSun47/tp: Update PUML Update UML diagram
* master: Update PUML Update UML diagram Update puml diagram Update puml for class diagram Add Class Level, UnitNumber, and link PostalCode and Street to Seller Add classes Buyer, Seller, PostalCode and Street. Buyer and Seller extend Person.
Add functionality to load data and add data to the addressbook Messages.java: Edit comment AddBuyerCommand.java, AddSellerCommand.java: Edit comment AddBuyerCommandParser: Update Person person to Buyer buyer House.java, Landed.java, Non-landed.java: Update toString() SampleDataUtil.java: Update sample datas to work with new JsonSerializableAddressBook JsonAdaptedHouse.java: Update to check for invalid field JsonSerializableAddressBook: Update methods to add buyer, toModelType will arrange data in alphabetical order PersonCard.java: Update method to display houses, buyer and seller duplicatePersonAddressBook, invalidPersonAddressBook, typicalPersonAddressBook: Update json to include buyer JsonAdaptedBuyerTest: Add test cases to test JsonAdaptedBuyer JsonAdaptedHouseTest: Update test cases to test for invalid field JsonSerializableAddressBookTest: Add test case to test for alphabetical order in list TypicalPerson: Add buyers to test new test cases that involves buyers
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #76 +/- ##
============================================
+ Coverage 70.51% 72.43% +1.92%
- Complexity 482 501 +19
============================================
Files 87 86 -1
Lines 1662 1698 +36
Branches 160 173 +13
============================================
+ Hits 1172 1230 +58
+ Misses 443 422 -21
+ Partials 47 46 -1 ☔ View full report in Codecov by Sentry. |
.withPhone("82937163").withEmail("ali@gmail.com").withHousingType("HDB").withTags("friends").build(); | ||
public static final Person BEN = new BuyerBuilder().withName(VALID_NAME_BEN).withPhone(VALID_PHONE_BOB) | ||
public static final Buyer BEN = new BuyerBuilder().withName(VALID_NAME_BEN).withPhone(VALID_PHONE_BOB) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really an issue, but you can consider following your previous variables names. (eg; BEN_BUYER
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, I will take note of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep I agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0658640
into
AY2324S2-CS2103-F09-1:master
Use Case 8: Add Data and Load Data from Json
Changes made:
in alphabetical order