@Test public void shouldConsumeSwipedHorizontallyMotionEventUp() { simulateSwipedHorizontally(swipe.getSwipedThreshold() + MIN_MOTION_CHANGE, false); assertThat(isEventUpConsumed).isFalse(); simulateSwipedHorizontally(swipe.getSwipedThreshold() + MIN_MOTION_CHANGE, true); assertThat(isEventUpConsumed).isTrue(); }
public int getSwipedThreshold() { return swipedThreshold; }
Swipe { public int getSwipedThreshold() { return swipedThreshold; } }
Swipe { public int getSwipedThreshold() { return swipedThreshold; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); }
Swipe { public int getSwipedThreshold() { return swipedThreshold; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); void setListener(SwipeListener swipeListener); Observable<SwipeEvent> observe(); boolean dispatchTouchEvent(final MotionEvent event); int getSwipingThreshold(); int getSwipedThreshold(); }
Swipe { public int getSwipedThreshold() { return swipedThreshold; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); void setListener(SwipeListener swipeListener); Observable<SwipeEvent> observe(); boolean dispatchTouchEvent(final MotionEvent event); int getSwipingThreshold(); int getSwipedThreshold(); final static int DEFAULT_SWIPING_THRESHOLD; final static int DEFAULT_SWIPED_THRESHOLD; }