@Test public void whenGravityOffsetX_thenGravityOffsetXSet() { createBuilder(); int expected = 600; builderUnderTest.gravityOffsetX(expected); assertThat(builderUnderTest.gravityOffsetX).isEqualTo(expected); }
public ToastBuilder gravityOffsetX(int gravityOffsetX) { this.gravityOffsetX = gravityOffsetX; return this; }
ToastBuilder { public ToastBuilder gravityOffsetX(int gravityOffsetX) { this.gravityOffsetX = gravityOffsetX; return this; } }
ToastBuilder { public ToastBuilder gravityOffsetX(int gravityOffsetX) { this.gravityOffsetX = gravityOffsetX; return this; } ToastBuilder(Context context); }
ToastBuilder { public ToastBuilder gravityOffsetX(int gravityOffsetX) { this.gravityOffsetX = gravityOffsetX; 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 gravityOffsetX(int gravityOffsetX) { this.gravityOffsetX = gravityOffsetX; 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();  }