Skip to content

Commit

Permalink
Fix delete appointment command test (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshenx authored Nov 6, 2021
1 parent 4cb64ee commit 3b60080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import static seedu.docit.testutil.TypicalIndexes.INDEX_FIRST_PATIENT;
import static seedu.docit.testutil.TypicalIndexes.INDEX_SECOND_APPOINTMENT;
import static seedu.docit.testutil.TypicalIndexes.INDEX_SECOND_PATIENT;
import static seedu.docit.testutil.TypicalPatients.getTypicalAddressBook;

import org.junit.jupiter.api.Test;

Expand All @@ -20,11 +21,10 @@
import seedu.docit.model.ModelManager;
import seedu.docit.model.UserPrefs;
import seedu.docit.model.appointment.Appointment;
import seedu.docit.model.util.SampleDataUtil;


public class DeleteAppointmentCommandTest {
private final Model model = new ModelManager(SampleDataUtil.getSampleAddressBook(), getTypicalAppointmentList(),
private final Model model = new ModelManager(getTypicalAddressBook(), getTypicalAppointmentList(),
new AppointmentBook(), new UserPrefs());

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TypicalAppointments {
// Upcoming appointments
public static final Appointment A1 = new Appointment(TypicalPatients.ALICE,
LocalDateTime.of(2022, 1, 1, 16, 0));
public static final Appointment A2 = new Appointment(TypicalPatients.ALICE,
public static final Appointment A2 = new Appointment(TypicalPatients.BENSON,
LocalDateTime.of(2022, 2, 2, 16, 0));
public static final Appointment B1 = new Appointment(TypicalPatients.BENSON,
LocalDateTime.of(2022, 1, 1, 16, 0));
Expand Down

0 comments on commit 3b60080

Please sign in to comment.