@Test public void whenMessageTextColorRes_thenMessageTextColorSet() { createBuilder(); @ColorRes int colorResId = getColorResourceId(0xFF223344); builderUnderTest.messageTextColorRes(colorResId); assertThat(builderUnderTest.messageTextColor).isEqualTo(0xFF223344); }
public ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId) { this.messageTextColor = getColor(messageTextColorResId); return this; }
ToastBuilder { public ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId) { this.messageTextColor = getColor(messageTextColorResId); return this; } }
ToastBuilder { public ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId) { this.messageTextColor = getColor(messageTextColorResId); return this; } ToastBuilder(Context context); }
ToastBuilder { public ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId) { this.messageTextColor = getColor(messageTextColorResId); return this; } ToastBuilder(Context context); ToastBuilder customView(View customView); ToastBuilder customViewMessageViewId(int customViewMessageViewId); ToastBuilder message(CharSequence message); ToastBuilder message(@StringRes int messageResId); ToastBuilder messageTextColor(@ColorInt int messageTextColor); ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId); ToastBuilder duration(int duration); ToastBuilder gravity(int gravity); ToastBuilder gravityOffsetX(int gravityOffsetX); ToastBuilder gravityOffsetY(int gravityOffsetY); @SuppressLint("ShowToast") Toast build(); }
ToastBuilder { public ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId) { this.messageTextColor = getColor(messageTextColorResId); return this; } ToastBuilder(Context context); ToastBuilder customView(View customView); ToastBuilder customViewMessageViewId(int customViewMessageViewId); ToastBuilder message(CharSequence message); ToastBuilder message(@StringRes int messageResId); ToastBuilder messageTextColor(@ColorInt int messageTextColor); ToastBuilder messageTextColorRes(@ColorRes int messageTextColorResId); ToastBuilder duration(int duration); ToastBuilder gravity(int gravity); ToastBuilder gravityOffsetX(int gravityOffsetX); ToastBuilder gravityOffsetY(int gravityOffsetY); @SuppressLint("ShowToast") Toast build();  }