### Question:
EventItemImpl extends BaseItem implements EventItem, Comparable<Item> { public boolean isRecurring() { if (this._freq != null && (_until != null || _count > -1 || this._byDay.size() > 0 || this._byMonth.size() > 0)) { return true; } return false; } EventItemImpl(); void setStartDate(Date date); @Override Date getStartDate(); long getStartDateAsTimeStamp(); void setEndDate(Date date); @Override Date getEndDate(); @Override /* Removing any newline characters shown in the description field */ void setDescription(String description); void setLocation(String s); @Override String getLocation(); void setOrganiser(String s); @Override String getOrganiser(); @Override String getProvenance(); void setProvenance(String provenance); @Override int compareTo(Item n); void setCount(int i); void setUntil(Date date); void setStartOfWeek(String wkst); void setFrequency(String freq); void setByDays(String days); void setByMonth(String month); boolean repeatsForever(); boolean isRecurring(); List<Date> getRecurringDatesUntil(Date endDate); @Override EventItemImpl clone();  }### Answer:
@Test public void testIsRecurring() throws ParseException { EventItemImpl item = new EventItemImpl(); Date startdate = new SimpleDateFormat(DATE_FORMAT_STRING).parse("2009-09-28T08:00:00Z"); Date until = new SimpleDateFormat(DATE_FORMAT_STRING).parse("2009-12-11T08:00:00Z"); item.setId("2rds35n4nan737jahku8cgq3nc@google.com"); item.setLabel("ASSL: Opening times"); item.setDescription("Issue Desk Service:<P>\nMonday to Wednesday - 8.45am - 8.00pm<br>\n\nThursday - 9.45am-8.00pm<br>\n\nFriday - 8.45am - 6.00pm <br>\n\nSaturday - 8.45 am - 6.00pm <br>\n\nSunday - No Issue Desk services<br>\n"); item.setStartOfWeek("MO"); item.setUntil(until); System.out.println(item.isRecurring()); assertFalse(item.isRecurring()); item.setFrequency("DAILY"); assertTrue(item.isRecurring()); }