Skip to content

Commit

Permalink
Edited testcase
Browse files Browse the repository at this point in the history
Edited testcase of Tags to support force functionality.
  • Loading branch information
HanB1n committed Oct 23, 2024
1 parent 587b72d commit 3e1637b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public void execute_validDeleteTagCommand_success() {

ModelManager expectedModel = new ModelManager(model.getAddressBook(), new UserPrefs());
expectedModel.deleteTag(tagToDelete);

assertCommandSuccess(deleteTagCommand, model, expectedMessage, expectedModel);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void execute_invalidIndexUnfilteredList_failure() {
public void execute_nonExistentTag_failure() {
HashSet<Tag> tagsToAdd = new HashSet(Arrays.asList(new Tag(new TagName("nonExistentTag"))));
TagCommand tagCommand = new TagCommand(INDEX_FIRST_PERSON, tagsToAdd);
String expectedMessage = Messages.MESSAGE_TAG_NOT_FOUND;
String expectedMessage = Messages.MESSAGE_TAG_NOT_FOUND + ".\n" + Messages.MESSAGE_FORCE_TAG_TO_CONTACT;

CommandTestUtil.assertCommandFailure(tagCommand, model, expectedMessage);
}
Expand Down

0 comments on commit 3e1637b

Please sign in to comment.