-
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
Add CreateBudgetCommand #47
Add CreateBudgetCommand #47
Conversation
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.
Just a few nits before approving
@@ -30,7 +31,7 @@ public JsonAdaptedBudget(@JsonProperty("title") String title, | |||
* Converts a given {@code Budget} into this class for Jackson use. | |||
*/ | |||
public JsonAdaptedBudget(Budget source) { | |||
title = source.getTitle(); | |||
title = source.getName(); |
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.
change the variable name to 'name'
@@ -42,7 +43,7 @@ public JsonAdaptedBudget(Budget source) { | |||
* @throws IllegalValueException if there were any data constraints violated. | |||
*/ | |||
public Budget toModelType() throws IllegalValueException { | |||
Budget budget = new Budget(title, new ArrayList<Expenditure>()); | |||
Budget budget = new Budget(new BudgetName(title), new ArrayList<Expenditure>()); |
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.
change variable name to name
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!
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
============================================
- Coverage 51.27% 50.52% -0.75%
Complexity 339 339
============================================
Files 93 95 +2
Lines 1488 1510 +22
Branches 145 148 +3
============================================
Hits 763 763
- Misses 674 696 +22
Partials 51 51
Continue to review full report at Codecov.
|
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
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
No description provided.