@Test public void testAddBirthdayNotification() { FacePamphletProfile test = new FacePamphletProfile("Test Profile"); FacePamphletProfile jimmy = new FacePamphletProfile("Jimmy"); Calendar currentDate = Calendar.getInstance(); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd"); String dateNow = formatter.format(currentDate.getTime()); jimmy.setBirthday(12, 4); test.addFriend(jimmy); test.addBirthdayNotifications(); assertTrue(test.getNotifications().contains("Jimmy's birthday is coming up on 12/4!!")); }
@Test public void testSetBirthday() { FacePamphletProfile test = new FacePamphletProfile("Test Profile"); test.setBirthday(2, 7); assertTrue(test.getBirthdayMonth() == 2 && test.getBirthdayDate() == 7); }
@Test public void testGetBirthday() { FacePamphletProfile test = new FacePamphletProfile("Test Profile"); test.setBirthday(1, 8); assertTrue(test.getBirthdayMonth() == 1 && test.getBirthdayDate() == 8); }