protected static Attendance createTestAttendance(Meeting meeting, User attendee) { Attendance attendance = new Attendance(); attendance.setCreated(new Date()); attendance.setMeeting(meeting); attendance.setAttendee(attendee); return attendance; }
protected void assertAttendancesEquals(Attendance expected, Attendance actual) { assertEquals("Invite 'id' is wrong", expected.getId(), actual.getId()); assertEquals("Invite 'created' is wrong", expected.getCreated(), actual.getCreated()); assertMeetingsEquals(expected.getMeeting(), actual.getMeeting()); assertUsersEquals(expected.getAttendee(), actual.getAttendee()); }