Skip to content

Commit

Permalink
Fix bug in Test class
Browse files Browse the repository at this point in the history
Bug fix for compatibility with Weddings in
EditPersonDescriptorBuilder.java.
  • Loading branch information
HanB1n committed Oct 17, 2024
1 parent f1662cf commit f293c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public EditPersonDescriptorBuilder(Person person) {
descriptor.setAddress(person.getAddress());
descriptor.setTags(person.getTags());
// Figure out why this is not possible
//descriptor.setWeddings(person.getWeddings());
descriptor.setWeddings(person.getWeddings());
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/test/java/seedu/address/testutil/PersonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public static String getEditPersonDescriptorDetails(EditPersonDescriptor descrip
tags.forEach(s -> sb.append(PREFIX_TAG).append(s.getTagName()).append(" "));
}
}
sb.append(" ");
if (descriptor.getWeddings().isPresent()) {
Set<Wedding> weddings = descriptor.getWeddings().get();
if (weddings.isEmpty()) {
Expand Down

0 comments on commit f293c13

Please sign in to comment.