-
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 functionality Force #102
Add functionality Force #102
Conversation
Add test for Wedding functions.
Fix conflicts in Messages.java Fix conflicts in UntagCommand.java Fix conflicts in AddressBookParser.java Fix conflicts in AddressBook.java
Fix check style issues in Wedding classes. Fix check style issues in Wedding test classes.
Add tests for UnassignWeddingCommand.
Add tests for AssignWeddingCommand.
Add tests for DeleteWeddingCommand.
Add tests for CreateWeddingCommand.
Add ability to force the assignment of wedding. Creates a new Wedding Object if the Wedding does not already exist when using force.
Add test for force functionality.
Add javadoc to explain overloaded constructor.
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
Add test to test for force functionality in AssignWeddingCommand.
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, some minor comment/variable changes
for (Wedding wedding : weddingsToAdd) { | ||
if (!model.hasWedding(wedding)) { | ||
if (this.force) { | ||
CreateWeddingCommand newWedding = new CreateWeddingCommand(wedding); |
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.
Maybe can make this variable 'newWeddingCommand' to make the code clearer
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.
Fixed.
src/main/java/seedu/address/logic/commands/DeleteTagCommand.java
Outdated
Show resolved
Hide resolved
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 besides some CodeCov
Messages.format(targetWedding))); | ||
} else { | ||
throw new CommandException( | ||
String.format(MESSAGE_DELETE_WEDDING_FAILURE_STILL_USED, Messages.format(targetWedding))); |
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.
CodeCov flagged this as not covered -- also couldn't find any tests that had MESSAGE_DELETE_WEDDING_FAILURE_STILL_USED
as output, but maybe I overlooked!
# Conflicts: # src/main/java/seedu/address/logic/Messages.java # src/main/java/seedu/address/logic/commands/AssignWeddingCommand.java # src/main/java/seedu/address/logic/commands/CreateWeddingCommand.java # src/main/java/seedu/address/logic/commands/DeleteWeddingCommand.java # src/main/java/seedu/address/logic/commands/UnassignWeddingCommand.java # src/main/java/seedu/address/model/AddressBook.java # src/main/java/seedu/address/model/Model.java # src/main/java/seedu/address/model/ReadOnlyAddressBook.java # src/main/java/seedu/address/model/person/Person.java # src/main/java/seedu/address/model/wedding/UniqueWeddingList.java # src/main/java/seedu/address/model/wedding/Wedding.java # src/main/java/seedu/address/model/wedding/WeddingName.java # src/test/java/seedu/address/logic/parser/CreateWeddingCommandParserTest.java # src/test/java/seedu/address/logic/parser/DeleteWeddingCommandParserTest.java # src/test/java/seedu/address/model/AddressBookTest.java # src/test/java/seedu/address/testutil/TypicalPersons.java
Remove setTag from UniqueWeddingList.java.
Add Message to instruct users on Force functionality in AssignWeddingCommand
Rename newWedding to newWeddingCommand.
No description provided.