CompactCalendarController { void setDayColumnNames(String[] dayColumnNames) { if (dayColumnNames == null || dayColumnNames.length != 7) { throw new IllegalArgumentException("Column names cannot be null and must contain a value for each day of the week"); } this.dayColumnNames = dayColumnNames; } CompactCalendarController(Paint dayPaint, OverScroller scroller, Rect textSizeRect, AttributeSet attrs,
                              Context context, int currentDayBackgroundColor, int calenderTextColor,
                              int currentSelectedDayBackgroundColor, VelocityTracker velocityTracker,
                              int multiEventIndicatorColor, EventsContainer eventsContainer,
                              Locale locale, TimeZone timeZone);  static final int IDLE; static final int EXPOSE_CALENDAR_ANIMATION; static final int EXPAND_COLLAPSE_CALENDAR; static final int ANIMATE_INDICATORS; }
@Test(expected=IllegalArgumentException.class) public void testItThrowsWhenDayColumnsIsNotLengthSeven(){ String[] dayNames = {"Mon", "Tue", "Wed", "Thur", "Fri"}; underTest.setDayColumnNames(dayNames); }