Skip to content
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

Tutorial add remark updated #14

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

jerryk1997
Copy link

No description provided.

Add a minimum viable implementation of the `remark` command. This
implementation meant to be a bridging step between seeing a positive
result and doing things the right way.

Tests are not implemented because students are not expected to know how
to write them yet.
Follow the convention and throw a CommandException instead of returning 
a CommandResult as the command did not fulfill its intended function.

Add RemarkCommandTest that will test that executeUndoableCommand()
throws an Exception.

Modify AddressBookParser to accept a RemarkCommand.

Add new test to AddressBookParserTest, which will test that typing
"remark" returns an instance of RemarkCommand.
Modify RemarkCommand to take in an Index and String for remark, and
print those two parameters as the error message

Modify RemarkCommandTest to test the equals method

Add RemarkCommandParser that will know how to parse two arguments, one
index and one with prefix 'r/'

Add RemarkCommandParserTest that will test different boundary values
for RemarkCommandParser.

Modify AddressBookParser to use the newly implemented
RemarkCommandParser

Modify AddressBookParserTest to ensure that what the user input
generated the correct command.
Add Remark to model component (copy from Address, remove the regex and
rename accordingly).

Add test for Remark (to test the equals method).

Modify RemarkCommand to now take in a Remark instead of a String.
Add a label to PersonListCard.fxml

Add FXML annotation in PersonCard to tie the variable to the actual
label.
Add Person#getRemark()

Modify PersonBuilder to support Remark.

Modify AddCommand to create a Person with a blank Remark.

Modify EditCommand to pass Remarks on unchanged.

Modify SampleDataUtil to add remarks for the sample data.

Add withRemark() to PersonBuilder.
Update tests and test data to use the remark field.
Replace the error message with the actual logic to modify the remarks
of a person.

Update RemarkCommandTest to test that execute() logic works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants