@Test public void testSkipLastWithZeroCount() { Observable<String> w = Observable.from("one", "two"); Observable<String> observable = Observable.create(skipLast(w, 0)); @SuppressWarnings("unchecked") Observer<String> observer = mock(Observer.class); observable.subscribe(observer); verify(observer, times(1)).onNext("one"); verify(observer, times(1)).onNext("two"); verify(observer, never()).onError(any(Throwable.class)); verify(observer, times(1)).onCompleted(); }
public static <T> OnSubscribeFunc<T> skipLast( Observable<? extends T> source, int count) { return new SkipLast<T>(source, count); }
OperationSkipLast { public static <T> OnSubscribeFunc<T> skipLast( Observable<? extends T> source, int count) { return new SkipLast<T>(source, count); } }
OperationSkipLast { public static <T> OnSubscribeFunc<T> skipLast( Observable<? extends T> source, int count) { return new SkipLast<T>(source, count); }  }
OperationSkipLast { public static <T> OnSubscribeFunc<T> skipLast( Observable<? extends T> source, int count) { return new SkipLast<T>(source, count); }  static OnSubscribeFunc<T> skipLast(
            Observable<? extends T> source, int count); }
OperationSkipLast { public static <T> OnSubscribeFunc<T> skipLast( Observable<? extends T> source, int count) { return new SkipLast<T>(source, count); }  static OnSubscribeFunc<T> skipLast(
            Observable<? extends T> source, int count);  }