Skip to content

Commit

Permalink
Update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
gongg21 committed Oct 16, 2023
1 parent e12dcbd commit bdf2601
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/test/java/seedu/address/testutil/StudentUtil.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package seedu.address.testutil;

import static seedu.address.logic.parser.CliSyntax.PREFIX_COURSE;
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG;

import java.util.Set;

import seedu.address.logic.commands.AddCommand;
import seedu.address.logic.commands.EditCommand.EditStudentDescriptor;
import seedu.address.model.person.Student;
import seedu.address.model.tag.Tag;

import static seedu.address.logic.parser.CliSyntax.PREFIX_COURSE;
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.address.logic.parser.CliSyntax.PREFIX_REMARK;
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG;

/**
* A utility class for Person.
*/
Expand Down Expand Up @@ -46,6 +47,7 @@ public static String getEditStudentDescriptorDetails(EditStudentDescriptor descr
descriptor.getName().ifPresent(name -> sb.append(PREFIX_NAME).append(name.fullName).append(" "));
descriptor.getCourse().ifPresent(COURSE -> sb.append(PREFIX_COURSE).append(COURSE.value).append(" "));
descriptor.getEmail().ifPresent(email -> sb.append(PREFIX_EMAIL).append(email.value).append(" "));
descriptor.getRemark().ifPresent(remark -> sb.append(PREFIX_REMARK).append(remark.value).append(" "));
if (descriptor.getTags().isPresent()) {
Set<Tag> tags = descriptor.getTags().get();
if (tags.isEmpty()) {
Expand Down

0 comments on commit bdf2601

Please sign in to comment.