CompactCalendarController { void setFirstDayOfWeek(int day){ if (day < 1 || day > 7) { throw new IllegalArgumentException("Day must be an int between 1 and 7 or DAY_OF_WEEK from Java Calendar class. For more information please see Calendar.DAY_OF_WEEK."); } this.firstDayOfWeekToDraw = day; setUseWeekDayAbbreviation(useThreeLetterAbbreviation); eventsCalendar.setFirstDayOfWeek(day); calendarWithFirstDayOfMonth.setFirstDayOfWeek(day); todayCalender.setFirstDayOfWeek(day); currentCalender.setFirstDayOfWeek(day); tempPreviousMonthCalendar.setFirstDayOfWeek(day); } 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 testItThrowsWhenZeroIsUsedAsFirstDayOfWeek(){ underTest.setFirstDayOfWeek(0); }
@Test(expected=IllegalArgumentException.class) public void testItThrowsWhenValuesGreaterThanSevenIsUsedAsFirstDayOfWeek(){ underTest.setFirstDayOfWeek(8); }