@Test public void test() { Contact Pete = new ContactImpl("Pete Jones", "Marketing manager"); Contact Tom = new ContactImpl("Tom Hanks", "Actor"); Contact Mary = new ContactImpl("Mary", "Director"); Calendar focDate; // id = 3 PastMeeting foc; Set<Contact> focContacts = new HashSet<Contact>(); focContacts.add(Tom); focContacts.add(new ContactImpl("Mark", "examiner")); focDate = Calendar.getInstance(); focDate.set(2014, 4, 22, 11, 30); foc = new PastMeetingImpl(focContacts, focDate, "FoC exam"); String output = foc.getNotes(); String expected = "FoC exam."; assertEquals(output, expected); }
@Test public void testNewPastMeeting() { PastMeeting pastMeeting = new PastMeetingImpl(id, calendar, contacts, notes); assertEquals(pastMeeting.getNotes(), notes); }