Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request nus-cs2103-AY1819S1#62 from SleepySanjinLi/master
Browse files Browse the repository at this point in the history
delete unuseful thing now
  • Loading branch information
SleepySanjinLi authored Oct 27, 2018
2 parents 88e900e + ba72909 commit e82eb69
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions src/test/java/seedu/address/ui/testutil/GuiTestAssert.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import guitests.guihandles.CalendarEventCardHandle;
import guitests.guihandles.CalendarEventListPanelHandle;
import guitests.guihandles.ResultDisplayHandle;
import guitests.guihandles.ToDoListEventCardHandle;

import seedu.address.model.calendarevent.CalendarEvent;
import seedu.address.model.todolist.ToDoListEvent;

/**
* A set of assertion methods useful for writing GUI tests.
Expand All @@ -27,17 +26,6 @@ public static void assertCardEquals(CalendarEventCardHandle expectedCard, Calend
assertEquals(expectedCard.getTags(), actualCard.getTags());
}

/**
* Asserts that {@code actualToDoListCard} displays the same values as {@code expectedToDoListCard}.
*/
public static void assertToDoListCardEquals(
ToDoListEventCardHandle expectedCard, ToDoListEventCardHandle actualCard) {
assertEquals(expectedCard.getId(), actualCard.getId());
assertEquals(expectedCard.getPriority(), actualCard.getPriority());
assertEquals(expectedCard.getTitle(), actualCard.getTitle());
assertEquals(expectedCard.getDescription(), actualCard.getDescription());
}

/**
* Asserts that {@code actualCard} displays the details of {@code expectedCalendarEvent}.
*/
Expand All @@ -50,16 +38,6 @@ public static void assertCardDisplaysPerson(CalendarEvent expectedCalendarEvent,
actualCard.getTags());
}

/**
* Asserts that {@code actualCard} displays the details of {@code expectedToDoListEvent}.
*/
public static void assertCardDisplaysToDoListEvent(ToDoListEvent expectedToDoListEvent,
ToDoListEventCardHandle actualCard) {
assertEquals(expectedToDoListEvent.getTitle().value, actualCard.getTitle());
assertEquals(expectedToDoListEvent.getDescription().value, actualCard.getDescription());
assertEquals(expectedToDoListEvent.getPriority().value, actualCard.getPriority());
}

/**
* Asserts that the list in {@code calendarEventListPanelHandle} displays the details of {@code calendarEvents}
* correctly and
Expand Down

0 comments on commit e82eb69

Please sign in to comment.