aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2015-02-05 18:23:01 +0100
committerSamuel Tardieu <sam@rfc1149.net>2015-02-05 18:23:01 +0100
commit0ece2fb2aa4b602c8e1a70f46c8610c0bfc08d1c (patch)
tree6990e56a1758a51ff670fbea041ca56b7b34e9bc /tests
parent04633289c4088af8a9fe54064fcc18c4be2025a8 (diff)
downloadcgeo-0ece2fb2aa4b602c8e1a70f46c8610c0bfc08d1c.zip
cgeo-0ece2fb2aa4b602c8e1a70f46c8610c0bfc08d1c.tar.gz
cgeo-0ece2fb2aa4b602c8e1a70f46c8610c0bfc08d1c.tar.bz2
Use operator TakeUntil from RxJava 1.0.5
Diffstat (limited to 'tests')
-rw-r--r--tests/src/cgeo/geocaching/utils/RxUtilsTest.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/src/cgeo/geocaching/utils/RxUtilsTest.java b/tests/src/cgeo/geocaching/utils/RxUtilsTest.java
index 2487184..cc8589b 100644
--- a/tests/src/cgeo/geocaching/utils/RxUtilsTest.java
+++ b/tests/src/cgeo/geocaching/utils/RxUtilsTest.java
@@ -4,7 +4,6 @@ import static org.assertj.core.api.Assertions.assertThat;
import rx.Observable;
import rx.Subscription;
-import rx.functions.Func1;
import rx.subjects.PublishSubject;
import rx.subjects.ReplaySubject;
@@ -21,16 +20,6 @@ public class RxUtilsTest extends AndroidTestCase {
range.onCompleted();
}
- public static void testTakeUntil() {
- final Observable<Integer> observable = range.lift(RxUtils.operatorTakeUntil(new Func1<Integer, Boolean>() {
- @Override
- public Boolean call(final Integer value) {
- return value > 6;
- }
- }));
- assertThat(observable.toList().toBlocking().single().toArray()).isEqualTo(new int[]{1, 2, 3, 4, 5, 6, 7});
- }
-
public static void testRememberLast() {
final PublishSubject<String> rawObservable = PublishSubject.create();
final Observable<String> observable = RxUtils.rememberLast(rawObservable, "initial");