public final class TestingHelper extends Object
Constructor and Description |
---|
TestingHelper() |
Modifier and Type | Method and Description |
---|---|
static <T,R> TestingHelper.Builder<T,R> |
function(rx.functions.Func1<rx.Observable<T>,rx.Observable<R>> function)
Sets the transformation to be tested and returns a builder to create test
cases.
|
static <T> rx.functions.Func1<rx.Observable<T>,TestSubscriber2<T>> |
test()
Returns a
Func1 For use with Observable.to() . |
static <T> rx.functions.Func1<rx.Observable<T>,TestSubscriber2<T>> |
testWithRequest(long initialRequest)
Returns a
Func1 For use with Observable.to() . |
public static <T,R> TestingHelper.Builder<T,R> function(rx.functions.Func1<rx.Observable<T>,rx.Observable<R>> function)
T
- generic type of the from side of the transformation being
testedR
- generic type of the to side of the transformation being testedfunction
- the transformation to be testedpublic static <T> rx.functions.Func1<rx.Observable<T>,TestSubscriber2<T>> test()
Func1
For use with Observable.to()
. Enables
method chaining from observable to assertions.T
- type of item in observable streampublic static <T> rx.functions.Func1<rx.Observable<T>,TestSubscriber2<T>> testWithRequest(long initialRequest)
Func1
For use with Observable.to()
. Enables
method chaining from observable to assertions.T
- type of item in observable streaminitialRequest
- amount to be requested in the onStart
method of the
subscriber.Copyright © 2013–2016. All rights reserved.