Skip to content

Commit 6ae9cf0

Browse files
author
Mustafa Sezgin
committed
Upgrade to Robolectric 2.0 and remove all the things...
1 parent e9ec58f commit 6ae9cf0

File tree

6 files changed

+5
-31
lines changed

6 files changed

+5
-31
lines changed

rxjava-contrib/rxjava-android/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
compile project(':rxjava-core')
1111
provided 'junit:junit-dep:4.10'
1212
provided 'org.mockito:mockito-core:1.8.5'
13-
provided 'com.pivotallabs:robolectric:1.2'
13+
provided 'org.robolectric:robolectric:2.1.1'
1414
provided 'com.google.android:android:4.0.1.2'
1515
}
1616

@@ -42,8 +42,6 @@ javadoc {
4242
}
4343

4444
jar {
45-
exclude "rx/android/testsupport"
46-
4745
manifest {
4846
name = 'rxjava-android'
4947
instruction 'Bundle-Vendor', 'Netflix'

rxjava-contrib/rxjava-android/src/main/java/rx/android/concurrency/HandlerThreadScheduler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
import org.junit.Test;
55
import org.junit.runner.RunWith;
66
import org.mockito.ArgumentCaptor;
7+
import org.robolectric.RobolectricTestRunner;
8+
import org.robolectric.annotation.Config;
79
import rx.Scheduler;
810
import rx.Subscription;
9-
import rx.android.testsupport.AndroidTestRunner;
1011
import rx.operators.AtomicObservableSubscription;
1112
import rx.util.functions.Func2;
1213

@@ -67,7 +68,8 @@ public void run() {
6768
return subscription;
6869
}
6970

70-
@RunWith(AndroidTestRunner.class)
71+
@RunWith(RobolectricTestRunner.class)
72+
@Config(manifest=Config.NONE)
7173
public static final class UnitTest {
7274

7375
@Test

rxjava-contrib/rxjava-android/src/main/java/rx/android/testsupport/AndroidTestRunner.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

rxjava-contrib/rxjava-android/src/test/java/rx/android/testsupport/R.java

Lines changed: 0 additions & 5 deletions
This file was deleted.

rxjava-contrib/rxjava-android/src/test/resources/AndroidManifest.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

rxjava-contrib/rxjava-android/src/test/resources/res/values/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)