WheelIndicatorView extends View { public void addWheelIndicatorItem(WheelIndicatorItem indicatorItem) { if (indicatorItem == null) throw new IllegalArgumentException("wheelIndicatorItems cannot be null"); this.wheelIndicatorItems.add(indicatorItem); recalculateItemsAngles(); invalidate(); } WheelIndicatorView(Context context, AttributeSet attrs, int defStyleAttr);  WheelIndicatorView(Context context, AttributeSet attrs);  WheelIndicatorView(Context context); void setWheelIndicatorItems(List<WheelIndicatorItem> wheelIndicatorItems); void setFilledPercent(int filledPercent); int getFilledPercent(); void setItemsLineWidth(int itemLineWidth); void addWheelIndicatorItem(WheelIndicatorItem indicatorItem); void notifyDataSetChanged(); void setBackgroundColor(int color); void startItemsAnimation(); static final int ANIMATION_DURATION; static final int INNER_BACKGROUND_CIRCLE_COLOR; }
@Test (expected = IllegalArgumentException.class) public void addNullWheelIndicatorItemsThowsException() { wheelIndicatorView.addWheelIndicatorItem(null); }