Dot extends RelativeLayout { public Dot setTransitionDuration(final int transitionDurationMs) { if (transitionDurationMs < 0) { throw new IllegalArgumentException("transitionDurationMs cannot be less than 0"); } this.transitionDurationMs = transitionDurationMs; return this; } Dot(final Context context);  Dot(final Context context, final AttributeSet attrs);  Dot(final Context context, final AttributeSet attrs, final int defStyleAttr); @TargetApi(21)  Dot(final Context context, final AttributeSet attrs, final int defStyleAttr,
			final int defStyleRes); Dot setInactiveDiameterPx(final int inactiveDiameterPx); Dot setInactiveDiameterDp(final int inactiveDiameterDp); int getInactiveDiameter(); Dot setActiveDiameterPx(final int activeDiameterPx); Dot setActiveDiameterDp(final int activeDiameterDp); int getActiveDiameter(); Dot setInactiveColor(final int inactiveColor); int getInactiveColor(); Dot setActiveColor(final int activeColor); int getActiveColor(); Dot setTransitionDuration(final int transitionDurationMs); int getTransitionDuration(); void toggleState(final boolean animate); void setInactive(final boolean animate); void setActive(final boolean animate);  }
@Test(expected = IllegalArgumentException.class) public void setTransitionDurationMs_int_invalidArg_shouldThrowException() { dot.setTransitionDuration(-1); }