Search in sources :

Example 6 with Action2

use of rx.functions.Action2 in project nucleus by konmik.

the class DeliveryTest method testWithOnNextOnError.

private void testWithOnNextOnError(Action2<Action2, Action2> test) {
    Action2 onNext = mock(Action2.class);
    Action2 onError = mock(Action2.class);
    test.call(onNext, onError);
    verifyNoMoreInteractions(onNext);
    verifyNoMoreInteractions(onError);
}
Also used : Action2(rx.functions.Action2)

Aggregations

Action2 (rx.functions.Action2)6 ArrayList (java.util.ArrayList)5 Test (org.junit.Test)4 Subscription (rx.Subscription)4 TestSubscriber (rx.observers.TestSubscriber)4 List (java.util.List)1 Observable (rx.Observable)1 Func0 (rx.functions.Func0)1