@Test public void shouldIgnoreSwipingHorizontallyMotionEventUp() { simulateSwipingHorizontally(swipe.getSwipingThreshold() + MIN_MOTION_CHANGE, false); assertThat(isEventUpConsumed).isNull(); simulateSwipingHorizontally(swipe.getSwipingThreshold() + MIN_MOTION_CHANGE, true); assertThat(isEventUpConsumed).isNull(); }
public int getSwipingThreshold() { return swipingThreshold; }
Swipe { public int getSwipingThreshold() { return swipingThreshold; } }
Swipe { public int getSwipingThreshold() { return swipingThreshold; } Swipe();  Swipe(int swipingThreshold, int swipedThreshold); }
Swipe { public int getSwipingThreshold() { return swipingThreshold; } 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 getSwipingThreshold() { return swipingThreshold; } 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; }