diff --git a/src/test/java/seedu/address/testutil/EditStudentDescriptorBuilder.java b/src/test/java/seedu/address/testutil/EditStudentDescriptorBuilder.java index 51d6cd17cc9..dbf557ce886 100644 --- a/src/test/java/seedu/address/testutil/EditStudentDescriptorBuilder.java +++ b/src/test/java/seedu/address/testutil/EditStudentDescriptorBuilder.java @@ -8,6 +8,7 @@ import seedu.address.model.person.Course; import seedu.address.model.person.Email; import seedu.address.model.person.Name; +import seedu.address.model.person.Remark; import seedu.address.model.person.Student; import seedu.address.model.tag.StudentRank; import seedu.address.model.tag.Tag; @@ -35,6 +36,7 @@ public EditStudentDescriptorBuilder(Student student) { descriptor.setName(student.getName()); descriptor.setCourse(student.getCourse()); descriptor.setEmail(student.getEmail()); + descriptor.setRemark(student.getRemark()); descriptor.setTags(student.getTags()); } @@ -62,6 +64,14 @@ public EditStudentDescriptorBuilder withEmail(String email) { return this; } + /** + * Sets the {@code Remark} of the {@code EditPersonDescriptor} that we are building. + */ + public EditStudentDescriptorBuilder withRemark(String remark) { + descriptor.setRemark(new Remark(remark)); + return this; + } + /** * Parses the {@code tags} into a {@code Set} and set it to the {@code EditPersonDescriptor}