@Test public void testSplit2() throws Exception { Action1<Integer> onNext = Mockito.mock(Action1.class); Action1<Throwable> onError = Mockito.mock(Action1.class); Action1<Notification<Integer>> split = RxNotification.split(onNext, onError); split.call(Notification.createOnNext(1)); RuntimeException exception = new RuntimeException(); split.call(Notification.<Integer>createOnError(exception)); split.call(Notification.<Integer>createOnCompleted()); verify(onNext, times(1)).call(1); verify(onError, times(1)).call(exception); verifyNoMoreInteractions(onNext, onError); }
public static <T> Action1<Notification<T>> split( @Nullable Action1<T> onNext) { return split(onNext, null); }
RxNotification { public static <T> Action1<Notification<T>> split( @Nullable Action1<T> onNext) { return split(onNext, null); } }
RxNotification { public static <T> Action1<Notification<T>> split( @Nullable Action1<T> onNext) { return split(onNext, null); }  }
RxNotification { public static <T> Action1<Notification<T>> split( @Nullable Action1<T> onNext) { return split(onNext, null); }  static Action1<Notification<T>> split(
        @Nullable Action1<T> onNext); static Action1<Notification<T>> split(
        @Nullable final Action1<T> onNext,
        @Nullable final Action1<Throwable> onError); }
RxNotification { public static <T> Action1<Notification<T>> split( @Nullable Action1<T> onNext) { return split(onNext, null); }  static Action1<Notification<T>> split(
        @Nullable Action1<T> onNext); static Action1<Notification<T>> split(
        @Nullable final Action1<T> onNext,
        @Nullable final Action1<Throwable> onError);  }