WheelIndicatorView extends View { public void setItemsLineWidth(int itemLineWidth) { if (itemLineWidth <= 0) throw new IllegalArgumentException("itemLineWidth must be greater than 0"); this.itemsLineWidth = itemLineWidth; 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 setNegativeLineWidthThowsException() { wheelIndicatorView.setItemsLineWidth(-2); }
@Test (expected = IllegalArgumentException.class) public void setLineWidthToZeroThowsException() { wheelIndicatorView.setItemsLineWidth(0); }